After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653741 - [curl] New protocols in curlsink
[curl] New protocols in curlsink
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal enhancement
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-30 12:59 UTC by Patricia Muscalu
Modified: 2012-05-12 11:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
curlbasesink - base class (30.75 KB, text/x-csrc)
2011-06-30 12:59 UTC, Patricia Muscalu
  Details
curlbasesink - header file (3.19 KB, text/x-chdr)
2011-06-30 13:04 UTC, Patricia Muscalu
  Details
curlfilesink (3.49 KB, text/x-csrc)
2011-06-30 13:05 UTC, Patricia Muscalu
  Details
curlfilesink - header file (1.81 KB, text/x-chdr)
2011-06-30 13:05 UTC, Patricia Muscalu
  Details
curlftpsink (3.45 KB, text/x-csrc)
2011-06-30 13:07 UTC, Patricia Muscalu
  Details
curlftpsink - header file (1.78 KB, text/x-chdr)
2011-06-30 13:08 UTC, Patricia Muscalu
  Details
curlhttpsink (16.74 KB, text/x-csrc)
2011-06-30 13:09 UTC, Patricia Muscalu
  Details
curlhttpsink - header file (2.00 KB, text/x-chdr)
2011-06-30 13:10 UTC, Patricia Muscalu
  Details
curltlssink (8.62 KB, text/x-csrc)
2011-06-30 13:11 UTC, Patricia Muscalu
  Details
curltlssink - header file (2.08 KB, text/x-chdr)
2011-06-30 13:11 UTC, Patricia Muscalu
  Details
check test (9.18 KB, text/x-csrc)
2011-06-30 13:14 UTC, Patricia Muscalu
  Details
check test (3.52 KB, text/x-csrc)
2011-06-30 13:15 UTC, Patricia Muscalu
  Details
curlsmtpsink (22.39 KB, text/x-csrc)
2011-11-30 18:12 UTC, Patricia Muscalu
  Details
curlsmtpsink - header file (2.31 KB, text/x-chdr)
2011-11-30 18:12 UTC, Patricia Muscalu
  Details
curlhttpsink (114.04 KB, patch)
2012-01-23 11:03 UTC, Patricia Muscalu
none Details | Review
curlfilesink (7.56 KB, patch)
2012-01-23 11:05 UTC, Patricia Muscalu
none Details | Review
curlftpsink (12.04 KB, patch)
2012-01-23 11:06 UTC, Patricia Muscalu
none Details | Review
curlsmtpsink (31.28 KB, patch)
2012-01-23 11:07 UTC, Patricia Muscalu
none Details | Review
curlhttpsink (114.11 KB, patch)
2012-03-22 15:44 UTC, Sebastian Rasmussen
none Details | Review
curlfilesink (8.09 KB, patch)
2012-03-22 15:45 UTC, Sebastian Rasmussen
none Details | Review
curlftpsink (12.56 KB, patch)
2012-03-22 15:45 UTC, Sebastian Rasmussen
none Details | Review
curlsmtpsink (31.64 KB, patch)
2012-03-22 15:45 UTC, Sebastian Rasmussen
none Details | Review
Patch for curlhttpsink (ported to 0.11). (119.56 KB, patch)
2012-04-26 13:19 UTC, Sebastian Rasmussen
committed Details | Review
Patch for curlfilesink (ported to 0.11). (26.36 KB, patch)
2012-04-26 13:20 UTC, Sebastian Rasmussen
committed Details | Review
Patch for curlftpsink (ported to 0.11). (15.83 KB, patch)
2012-04-26 13:20 UTC, Sebastian Rasmussen
committed Details | Review
Patch for curlsmtpsink (ported to 0.11). (40.93 KB, patch)
2012-04-26 13:20 UTC, Sebastian Rasmussen
none Details | Review
Patch for curlsmtpsink (ported to 0.11). (40.92 KB, patch)
2012-04-26 15:45 UTC, Sebastian Rasmussen
committed Details | Review

Description Patricia Muscalu 2011-06-30 12:59:20 UTC
Created attachment 191011 [details]
curlbasesink - base class

Added support for FILE, FTP and secure FTP protocols to curlsink plugin.
Comment 1 Patricia Muscalu 2011-06-30 13:04:02 UTC
Created attachment 191012 [details]
curlbasesink - header file
Comment 2 Patricia Muscalu 2011-06-30 13:05:13 UTC
Created attachment 191013 [details]
curlfilesink
Comment 3 Patricia Muscalu 2011-06-30 13:05:42 UTC
Created attachment 191014 [details]
curlfilesink - header file
Comment 4 Patricia Muscalu 2011-06-30 13:07:59 UTC
Created attachment 191015 [details]
curlftpsink
Comment 5 Patricia Muscalu 2011-06-30 13:08:37 UTC
Created attachment 191016 [details]
curlftpsink - header file
Comment 6 Patricia Muscalu 2011-06-30 13:09:44 UTC
Created attachment 191017 [details]
curlhttpsink
Comment 7 Patricia Muscalu 2011-06-30 13:10:08 UTC
Created attachment 191018 [details]
curlhttpsink - header file
Comment 8 Patricia Muscalu 2011-06-30 13:11:06 UTC
Created attachment 191019 [details]
curltlssink
Comment 9 Patricia Muscalu 2011-06-30 13:11:58 UTC
Created attachment 191020 [details]
curltlssink - header file
Comment 10 Patricia Muscalu 2011-06-30 13:14:11 UTC
Created attachment 191021 [details]
check test
Comment 11 Patricia Muscalu 2011-06-30 13:15:24 UTC
Created attachment 191023 [details]
check test
Comment 12 David Schleef 2011-06-30 16:44:28 UTC
Please attach patches, preferably made with 'git format-patch', instead of individual source files.

There is no need for separate elements to handle other URL methods like ftp: and file:.  This functionality can go in curlsink, if it's not already there.
Comment 13 Akhil Laddha 2011-08-22 05:36:25 UTC
Patricia, can you please incorporate changes as requested in comment#12 ?
Comment 14 Patricia Muscalu 2011-08-22 13:40:04 UTC
Sorry for my delayed answer. 
Those files I attached a while ago, are totally rewritten and do not exist in the repository. 
I've chosen to split protocols into separate files because in my opinion the design is much cleaner.
I'm currently working on SMTP-curlsink addition and just by extending the current version of curlsink with this protocol makes the code look more “clumsy”.  
Maybe in the future somebody wants to extend curlsink with all the protocols supported by libcurl or just to add new properties to the currently supported protocols.
Keeping the current design will unnecessary complicate this approach.
Comment 15 Patricia Muscalu 2011-11-30 18:12:05 UTC
Created attachment 202470 [details]
curlsmtpsink
Comment 16 Patricia Muscalu 2011-11-30 18:12:48 UTC
Created attachment 202471 [details]
curlsmtpsink - header file
Comment 17 Patricia Muscalu 2011-11-30 18:14:51 UTC
Hello again,

I've attached SMTP-curlsink files.

Thank you!
Comment 18 Patricia Muscalu 2012-01-19 13:29:14 UTC
Hello,

What the status of this Bug?
I've more updates/fixes and a new ftp-ssh implementation ongoing.

Thank you!
Comment 19 Patricia Muscalu 2012-01-23 11:03:14 UTC
Created attachment 205861 [details] [review]
curlhttpsink
Comment 20 Patricia Muscalu 2012-01-23 11:05:45 UTC
Created attachment 205862 [details] [review]
curlfilesink
Comment 21 Patricia Muscalu 2012-01-23 11:06:40 UTC
Created attachment 205863 [details] [review]
curlftpsink
Comment 22 Patricia Muscalu 2012-01-23 11:07:54 UTC
Created attachment 205864 [details] [review]
curlsmtpsink
Comment 23 Patricia Muscalu 2012-01-23 11:09:58 UTC
Hello,

I've attached patches made with 'git format-patch'.
Comment 24 Patricia Muscalu 2012-03-02 11:39:28 UTC
Could you please to have a look at my patches? We have more bug fixes ongoing.

Thank you!
Comment 25 Sebastian Rasmussen 2012-03-22 15:44:38 UTC
Created attachment 210349 [details] [review]
curlhttpsink
Comment 26 Sebastian Rasmussen 2012-03-22 15:45:04 UTC
Created attachment 210350 [details] [review]
curlfilesink
Comment 27 Sebastian Rasmussen 2012-03-22 15:45:21 UTC
Created attachment 210351 [details] [review]
curlftpsink
Comment 28 Sebastian Rasmussen 2012-03-22 15:45:35 UTC
Created attachment 210352 [details] [review]
curlsmtpsink
Comment 29 Sebastian Rasmussen 2012-04-26 13:19:42 UTC
Created attachment 212881 [details] [review]
Patch for curlhttpsink (ported to 0.11).
Comment 30 Sebastian Rasmussen 2012-04-26 13:20:05 UTC
Created attachment 212882 [details] [review]
Patch for curlfilesink (ported to 0.11).
Comment 31 Sebastian Rasmussen 2012-04-26 13:20:28 UTC
Created attachment 212883 [details] [review]
Patch for curlftpsink (ported to 0.11).
Comment 32 Sebastian Rasmussen 2012-04-26 13:20:47 UTC
Created attachment 212884 [details] [review]
Patch for curlsmtpsink (ported to 0.11).
Comment 33 Sebastian Rasmussen 2012-04-26 15:45:09 UTC
Created attachment 212895 [details] [review]
Patch for curlsmtpsink (ported to 0.11).
Comment 34 Tim-Philipp Müller 2012-05-12 11:05:52 UTC
Thanks, I've pushed these to master now.

Haven't reviewed in depth, but looks fine at first glance, don't see any reason not to just push these.

I would like to see the FIXMEs around the properties fixed (sync property names with souphttpsrc), if still relevant.

What is the purpose of curlfilesink? What can it do that filesink can't do? Why have it? I'd rather see options like the create-directories added to filesink.

Why are there separate properties for the file-name and the directory (location)? I noticed the property description refers to 'for the uploaded images', but not quite sure what it means / how it works.

Can't we stuff that all into location as it's done for other things (even e.g. splitfilesrc)?


commit 3f20bbdcf4b437bf63a7426a5deac45a3c8267d7
Author: Sebastian Rasmussen <sebrn@axis.com>
Date:   Wed Apr 25 19:46:53 2012 +0200

    curl: new curlsmtpsink element
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653741

commit 766dd8bb717b1ba5317fbd2c5d7860d6beb34834
Author: Patricia Muscalu <patricia@axis.com>
Date:   Mon Jan 23 09:45:24 2012 +0100

    curl: new curlftpsink element
    
    http://bugzilla.gnome.org/show_bug.cgi?id=653741

commit f139656becf17dce39be0fe180796794aa3b8875
Author: Patricia Muscalu <patricia@axis.com>
Date:   Mon Jan 23 09:28:10 2012 +0100

    curl: new curlfilesink element
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653741

commit ae39cbfa577adf48f50f11b67121670275480d92
Author: Patricia Muscalu <patricia@axis.com>
Date:   Mon Jan 23 09:00:47 2012 +0100

    curl: refactor curlsink, rename to curlhttpsink
    
    Split into base, tls and http classes.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=653741