GithubHelp home page GithubHelp logo

flickcurl's People

Contributors

dajobe avatar huge avatar jcsogo avatar kumanna avatar naruto avatar radhermit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flickcurl's Issues

Don't find command contacts.getPublicList

Hallo,

I have installed flickcurl1.23 on CentOs system, and nearly everything works fine.

The problem is, I can't find the command contacts.getPublicList when I type -help, and when I want to use it, it returns: no such command 'contacts.getPublicList'

But I do find its function definition in contacts-api.c file,

May you check what is the problem?

Thanks very much.

Huang

flickcurl should be accept specific curl options

It should be nice to allow curl option (for example using a specific network interface, limiting bandwidth, ...)

Have you got an API to use CURL handle ?
(I've looked at source and it seems not possible since CURL handle is only in flickcurl_private.h)

Or maybe adding a new function in libflickcurl that'll manage possible options for curl ?

errors flickcurl_photos_geo_setLocation

I notice en error line 593 in photos-geo-api.c (function flickcurl_photos_geo_setLocation) :
sprintf(longitude_s, "%f", location->latitude);

It should be :
sprintf(longitude_s, "%f", location->longitude);

Moreover the command photos_geo_setLocation is not recognize inside flickurl:
$./flickcurl photos.geo.setLocation "4489460916" "2" "3" "15"
lt-flickcurl: No such command `photos.geo.setLocation'

I use :
flickcurl-1.17
libxml 2.7.5
curl 7.19.5
raptor 1.4.19

Regards.

flickcurl authentication issue

Using flickcurl 1.23, oauth doesn't seem to work quite right.

james$ flickcurl test.login
flickcurl: ERROR: Method flickr.test.login failed with error 0 - (null) (HTTP 401)
flickcurl: Command test.login failed

The app is authorized, using the command:

flickcurl oauth-verify {request_token} {request_token_secret} {frob}

which appears to return successfully:

flickcurl: Returned OAuth token '...' and token secret '...'
flickcurl: Updated configuration file /Users/james/.flickcurl.conf with OAuth tokens

The configuration file is updated, but commands using flickcurl don't appear to work.

Third parameter for flickcurl oauth-verify how do I get that?

I am using the git-version of flickcurl, latest one.
Going through http://librdf.org/flickcurl/api/flickcurl-auth-authenticate.html first, flickcurl oauth-create --help gave a lot insight.
Called flickcurl oauth-create CALLBACK
Used returned "Request URI" in Browser.
URI smth like https://www.flickr.com/services/oauth/request_token?oauth_callback=CALLBACK&oauth_consumer_key=<alphanumerics>&oauth_nonce=<digits>&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1517433252&oauth_version=1.0&oauth_signature=<alphanumerics>%2F55Sk%3D
Contents shown on that page:
oauth_callback_confirmed=true&oauth_token=72157626737672178-022bbd2f4c2f3432&oauth_token_secret=fccb68c4e6103197
No other URIs returned, i. e. the flickr page sayin' "[APP NAME] wants to link to your Flickr account"
Problem: How do I get the 9-digit code (page with it) that is last missing for flickcurl oauth-verify now?
I guess I missed the point of CALLBACK a bit?

Flickcurl-1.25 fails to upload

Hi,

I have used (and maintained the openbsd package of) flickcurl for some years. But it seems that something is now broken (or I have screwed up oauth).

I first ran flickcurl with no arguments and followed instructions. I now have a config file like this:

[flickr]                                                                        
oauth_token=xxxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx                                  
oauth_token_secret=xxxxxxxxxxxxxxxx                                             
oauth_client_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx                               
oauth_client_secret=xxxxxxxxxxxxxxxx

Obviously the actual keys have been censored.

Then if I upload as I always had:

$ flickcurl upload IMG_4644.JPG friend family 
flickcurl: Uploading file IMG_4644.JPG
flickcurl: ERROR: Call failed with error 0 - (null) (HTTP 403)
flickcurl: Command upload failed                    

I then removed the config and followed the instructions a second time. No cigar.

I also tried setting the API key to a mobile app. No cigar.

Can someone try uploading in this way to see if it still works. Maybe the flickr API changed?

I see 1.26 was tagged a couple of days ago. Will this fix the issue?

Thanks

flag xmlKeepBlanksDefault

Hello,

I want to point out that if we set the flag xmlKeepBlanksDefault to zero (xmlKeepBlanksDefault(0)), flickcurl_photos_getInfo crashed with segmentation fault.
It seems to be when strlen is called in flickcurl_build_photos (called by flickcurl_build_photo in flickcurl_photos_getInfo).

I use :
flickcurl-1.17
libxml 2.7.5
curl 7.19.5
raptor 1.4.19

Regards.

photosets.addPhoto and photosets.create fail with HTTP 401

I'm having problems with many commands related to photosets:
$ flickcurl photosets.addPhoto 72157633619525629 8802172371 flickcurl: ERROR: Method flickr.photosets.addPhoto failed with error 0 - (null) (HTTP 401) flickcurl: Command photosets.addPhoto failed $ flickcurl photosets.create 'Test' 'Text' 8802172371 flickcurl: ERROR: Method flickr.photosets.create failed with error 0 - (null) (HTTP 401) flickcurl: Command photosets.create failed

Others seems to work, though:
$ flickcurl photosets.getInfo 72157633619525629 flickcurl: Found photoset with ID 72157633619525629 primary photo: '8801886801' secret: XXXX server: 8395 farm: 9 photos count: 1 title: 'new set d' description: '(No description)'

Any idea what is wrong? I can upload pictures fine, but this part always fails...

Using the latest version:
$ flickcurl Flickr API utility 1.24

Thank you.

Segfault doing photos.getInfo

I'm trying to figure out flickcurl with API. Following the tutorial:

I did this on Mac OS X:

flickcurl photos.getInfo 3972573078

with version:

1.23

It crashed with:

#0  0x0000000101622b5f in flickcurl_build_tags (fc=0x7fff5e6145d0, photo=0x7fff5e6145d0, xpathCtx=0x0, xpathExpr=0x7ff9eb425280 "", tag_count_p=0x7fff5e6145d0) at tags.c:168
168           size_t len = strlen((const char*)chnode->children->content);
(gdb) bt
#0  0x0000000101622b5f in flickcurl_build_tags (fc=0x7fff5e6145d0, photo=0x7fff5e6145d0, xpathCtx=0x0, xpathExpr=0x7ff9eb425280 "", tag_count_p=0x7fff5e6145d0) at tags.c:168
#1  0x000000010161eeea in flickcurl_build_photos (fc=0x7fff5e614870, xpathCtx=0x7fff5e614870, xpathExpr=0x53c <Address 0x53c out of bounds>, photo_count_p=0x7fff5e614870) at photo.c:1127
#2  0x000000010161f4b7 in flickcurl_build_photo (fc=0x7ff9eb805e00, xpathCtx=0x7ff9eb81da00) at photo.c:1176
#3  0x0000000101628ed1 in flickcurl_photos_getInfo (fc=0x7ff9eb805e00, photo_id=0xd4a00 <Address 0xd4a00 out of bounds>) at photos-api.c:805
#4  0x00000001015f31d2 in command_photos_getInfo (fc=0x7ff9eb805e00, argc=-343811584, argv=0xd4a00) at flickcurl.c:474
#5  0x00000001015ecac4 in main (argc=1583434048, argv=0x7fff5e614940) at flickcurl.c:6044

This corresponds to:

http://www.flickr.com/photos/jamesblackburn/3972573078/in/photostream

`flickcurl oauth-create` crashes on Arch Linux

$ flickcurl oauth-create
*** Error in `flickcurl': double free or corruption (fasttop): 0x0000000001495870 ***
======= Backtrace: =========
/usr/lib/libc.so.6(+0x732ae)[0x7f13cdd342ae]
/usr/lib/libc.so.6(+0x7872e)[0x7f13cdd3972e]
/usr/lib/libc.so.6(+0x78eeb)[0x7f13cdd39eeb]
/usr/lib/libflickcurl.so.0(flickcurl_free_form+0x11)[0x7f13ce2e8dd1]
/usr/lib/libflickcurl.so.0(flickcurl_oauth_create_request_token+0x1d9)[0x7f13ce3055c9]
flickcurl[0x40c8f3]
flickcurl[0x40776a]
/usr/lib/libc.so.6(__libc_start_main+0xf0)[0x7f13cdce1040]
flickcurl[0x407814]
======= Memory map: ========
00400000-0041b000 r-xp 00000000 08:32 428369                             /usr/bin/flickcurl
0061a000-0061b000 r--p 0001a000 08:32 428369                             /usr/bin/flickcurl
0061b000-0061e000 rw-p 0001b000 08:32 428369                             /usr/bin/flickcurl
0134f000-014ba000 rw-p 00000000 00:00 0                                  [heap]
7f13c3dfa000-7f13c3dff000 r-xp 00000000 08:32 396551                     /usr/lib/libnss_dns-2.20.so
7f13c3dff000-7f13c3ffe000 ---p 00005000 08:32 396551                     /usr/lib/libnss_dns-2.20.so
7f13c3ffe000-7f13c3fff000 r--p 00004000 08:32 396551                     /usr/lib/libnss_dns-2.20.so
7f13c3fff000-7f13c4000000 rw-p 00005000 08:32 396551                     /usr/lib/libnss_dns-2.20.so
7f13c4000000-7f13c4021000 rw-p 00000000 00:00 0 
7f13c4021000-7f13c8000000 ---p 00000000 00:00 0 
7f13c81fc000-7f13c8207000 r-xp 00000000 08:32 396550                     /usr/lib/libnss_files-2.20.so
7f13c8207000-7f13c8407000 ---p 0000b000 08:32 396550                     /usr/lib/libnss_files-2.20.so
7f13c8407000-7f13c8408000 r--p 0000b000 08:32 396550                     /usr/lib/libnss_files-2.20.so
7f13c8408000-7f13c8409000 rw-p 0000c000 08:32 396550                     /usr/lib/libnss_files-2.20.so
7f13c8409000-7f13c840a000 ---p 00000000 00:00 0 
7f13c840a000-7f13c8c0a000 rw-p 00000000 00:00 0 
7f13c8c0a000-7f13c8c20000 r-xp 00000000 08:32 399547                     /usr/lib/libgcc_s.so.1
7f13c8c20000-7f13c8e1f000 ---p 00016000 08:32 399547                     /usr/lib/libgcc_s.so.1
7f13c8e1f000-7f13c8e20000 rw-p 00015000 08:32 399547                     /usr/lib/libgcc_s.so.1
7f13c8e20000-7f13c8f10000 r-xp 00000000 08:32 404495                     /usr/lib/libstdc++.so.6.0.20
7f13c8f10000-7f13c9110000 ---p 000f0000 08:32 404495                     /usr/lib/libstdc++.so.6.0.20
7f13c9110000-7f13c9118000 r--p 000f0000 08:32 404495                     /usr/lib/libstdc++.so.6.0.20
7f13c9118000-7f13c911a000 rw-p 000f8000 08:32 404495                     /usr/lib/libstdc++.so.6.0.20
7f13c911a000-7f13c912f000 rw-p 00000000 00:00 0 
7f13c912f000-7f13ca959000 r--p 00000000 08:32 425214                     /usr/lib/libicudata.so.54.1
7f13ca959000-7f13cab58000 ---p 0182a000 08:32 425214                     /usr/lib/libicudata.so.54.1
7f13cab58000-7f13cab59000 r--p 01829000 08:32 425214                     /usr/lib/libicudata.so.54.1
7f13cab59000-7f13cab6d000 r-xp 00000000 08:32 396526                     /usr/lib/libresolv-2.20.so
7f13cab6d000-7f13cad6c000 ---p 00014000 08:32 396526                     /usr/lib/libresolv-2.20.so
7f13cad6c000-7f13cad6e000 r--p 00013000 08:32 396526                     /usr/lib/libresolv-2.20.so
7f13cad6e000-7f13cad6f000 rw-p 00015000 08:32 396526                     /usr/lib/libresolv-2.20.so
7f13cad6f000-7f13cad71000 rw-p 00000000 00:00 0 
7f13cad71000-7f13cad74000 r-xp 00000000 08:32 438017                     /usr/lib/libkeyutils.so.1.5
7f13cad74000-7f13caf73000 ---p 00003000 08:32 438017                     /usr/lib/libkeyutils.so.1.5
7f13caf73000-7f13caf74000 r--p 00002000 08:32 438017                     /usr/lib/libkeyutils.so.1.5
7f13caf74000-7f13caf75000 rw-p 00003000 08:32 438017                     /usr/lib/libkeyutils.so.1.5
7f13caf75000-7f13caf81000 r-xp 00000000 08:32 425208                     /usr/lib/libkrb5support.so.0.1
7f13caf81000-7f13cb180000 ---p 0000c000 08:32 425208                     /usr/lib/libkrb5support.so.0.1
7f13cb180000-7f13cb181000 r--p 0000b000 08:32 425208                     /usr/lib/libkrb5support.so.0.1
7f13cb181000-7f13cb182000 rw-p 0000c000 08:32 425208                     /usr/lib/libkrb5support.so.0.1
7f13cb182000-7f13cb1bf000 r-xp 00000000 08:32 425154                     /usr/lib/libxslt.so.1.1.28
7f13cb1bf000-7f13cb3be000 ---p 0003d000 08:32 425154                     /usr/lib/libxslt.so.1.1.28
7f13cb3be000-7f13cb3bf000 r--p 0003c000 08:32 425154                     /usr/lib/libxslt.so.1.1.28
7f13cb3bf000-7f13cb3c0000 rw-p 0003d000 08:32 425154                     /usr/lib/libxslt.so.1.1.28
7f13cb3c0000-7f13cb3c1000 rw-p 00000000 00:00 0 
7f13cb3c1000-7f13cb53b000 r-xp 00000000 08:32 425197                     /usr/lib/libicuuc.so.54.1
7f13cb53b000-7f13cb73b000 ---p 0017a000 08:32 425197                     /usr/lib/libicuuc.so.54.1
7f13cb73b000-7f13cb74c000 r--p 0017a000 08:32 425197                     /usr/lib/libicuuc.so.54.1
7f13cb74c000-7f13cb74d000 rw-p 0018b000 08:32 425197                     /usr/lib/libicuuc.so.54.1
7f13cb74d000-7f13cb751000 rw-p 00000000 00:00 0 
7f13cb751000-7f13cb776000 r-xp 00000000 08:32 402484                     /usr/lib/liblzma.so.5.2.0
7f13cb776000-7f13cb975000 ---p 00025000 08:32 402484                     /usr/lib/liblzma.so.5.2.0
7f13cb975000-7f13cb976000 r--p 00024000 08:32 402484                     /usr/lib/liblzma.so.5.2.0
7f13cb976000-7f13cb977000 rw-p 00025000 08:32 402484                     /usr/lib/liblzma.so.5.2.0
7f13cb977000-7f13cb98e000 r-xp 00000000 08:32 396596                     /usr/lib/libpthread-2.20.so
7f13cb98e000-7f13cbb8d000 ---p 00017000 08:32 396596                     /usr/lib/libpthread-2.20.so
7f13cbb8d000-7f13cbb8e000 r--p 00016000 08:32 396596                     /usr/lib/libpthread-2.20.so
7f13cbb8e000-7f13cbb8f000 rw-p 00017000 08:32 396596                     /usr/lib/libpthread-2.20.so
7f13cbb8f000-7f13cbb93000 rw-p 00000000 00:00 0 
7f13cbb93000-7f13cbb96000 r-xp 00000000 08:32 403233                     /usr/lib/libcom_err.so.2.1
7f13cbb96000-7f13cbd95000 ---p 00003000 08:32 403233                     /usr/lib/libcom_err.so.2.1
7f13cbd95000-7f13cbd96000 r--p 00002000 08:32 403233                     /usr/lib/libcom_err.so.2.1
7f13cbd96000-7f13cbd97000 rw-p 00003000 08:32 403233                     /usr/lib/libcom_err.so.2.1
7f13cbd97000-7f13cbdc6000 r-xp 00000000 08:32 425189                     /usr/lib/libk5crypto.so.3.1
7f13cbdc6000-7f13cbfc5000 ---p 0002f000 08:32 425189                     /usr/lib/libk5crypto.so.3.1
7f13cbfc5000-7f13cbfc7000 r--p 0002e000 08:32 425189                     /usr/lib/libk5crypto.so.3.1
7f13cbfc7000-7f13cbfc8000 rw-p 00030000 08:32 425189                     /usr/lib/libk5crypto.so.3.1
7f13cbfc8000-7f13cbfc9000 rw-p 00000000 00:00 0 
7f13cbfc9000-7f13cc09e000 r-xp 00000000 08:32 406224                     /usr/lib/libkrb5.so.3.3
7f13cc09e000-7f13cc29d000 ---p 000d5000 08:32 406224                     /usr/lib/libkrb5.so.3.3
7f13cc29d000-7f13cc2ab000 r--p 000d4000 08:32 406224                     /usr/lib/libkrb5.so.3.3
7f13cc2ab000-7f13cc2ae000 rw-p 000e2000 08:32 406224                     /usr/lib/libkrb5.so.3.3
7f13cc2ae000-7f13cc2f8000 r-xp 00000000 08:32 420110                     /usr/lib/libgssapi_krb5.so.2.2
7f13cc2f8000-7f13cc4f7000 ---p 0004a000 08:32 420110                     /usr/lib/libgssapi_krb5.so.2.2
7f13cc4f7000-7f13cc4f9000 r--p 00049000 08:32 420110                     /usr/lib/libgssapi_krb5.so.2.2
7f13cc4f9000-7f13cc4fb000 rw-p 0004b000 08:32 420110                     /usr/lib/libgssapi_krb5.so.2.2
7f13cc4fb000-7f13cc6e1000 r-xp 00000000 08:32 405753                     /usr/lib/libcrypto.so.1.0.0
7f13cc6e1000-7f13cc8e1000 ---p 001e6000 08:32 405753                     /usr/lib/libcrypto.so.1.0.0
7f13cc8e1000-7f13cc8fd000 r--p 001e6000 08:32 405753                     /usr/lib/libcrypto.so.1.0.0
7f13cc8fd000-7f13cc909000 rw-p 00202000 08:32 405753                     /usr/lib/libcrypto.so.1.0.0
7f13cc909000-7f13cc90d000 rw-p 00000000 00:00 0 
7f13cc90d000-7f13cc972000 r-xp 00000000 08:32 405752                     /usr/lib/libssl.so.1.0.0
7f13cc972000-7f13ccb71000 ---p 00065000 08:32 405752                     /usr/lib/libssl.so.1.0.0
7f13ccb71000-7f13ccb76000 r--p 00064000 08:32 405752                     /usr/lib/libssl.so.1.0.0
7f13ccb76000-7f13ccb7d000 rw-p 00069000 08:32 405752                     /usr/lib/libssl.so.1.0.0
7f13ccb7d000-7f13ccba5000 r-xp 00000000 08:32 410826                     /usr/lib/libssh2.so.1.0.1
7f13ccba5000-7f13ccda4000 ---p 00028000 08:32 410826                     /usr/lib/libssh2.so.1.0.1
7f13ccda4000-7f13ccda5000 r--p 00027000 08:32 410826                     /usr/lib/libssh2.so.1.0.1
7f13ccda5000-7f13ccda6000 rw-p 00028000 08:32 410826                     /usr/lib/libssh2.so.1.0.1
7f13ccda6000-7f13ccdd8000 r-xp 00000000 08:32 425516                     /usr/lib/libidn.so.11.6.12
7f13ccdd8000-7f13ccfd8000 ---p 00032000 08:32 425516                     /usr/lib/libidn.so.11.6.12
7f13ccfd8000-7f13ccfd9000 r--p 00032000 08:32 425516                     /usr/lib/libidn.so.11.6.12
7f13ccfd9000-7f13ccfda000 rw-p 00033000 08:32 425516                     /usr/lib/libidn.so.11.6.12
7f13ccfda000-7f13cd038000 r-xp 00000000 08:32 425224                     /usr/lib/libraptor2.so.0.0.0
7f13cd038000-7f13cd238000 ---p 0005e000 08:32 425224                     /usr/lib/libraptor2.so.0.0.0
7f13cd238000-7f13cd23b000 r--p 0005e000 08:32 425224                     /usr/lib/libraptor2.so.0.0.0
7f13cd23b000-7f13cd23d000 rw-p 00061000 08:32 425224                     /usr/lib/libraptor2.so.0.0.0
7f13cd23d000-7f13cd240000 r-xp 00000000 08:32 396490                     /usr/lib/libdl-2.20.so
7f13cd240000-7f13cd43f000 ---p 00003000 08:32 396490                     /usr/lib/libdl-2.20.so
7f13cd43f000-7f13cd440000 r--p 00002000 08:32 396490                     /usr/lib/libdl-2.20.so
7f13cd440000-7f13cd441000 rw-p 00003000 08:32 396490                     /usr/lib/libdl-2.20.so
7f13cd441000-7f13cd544000 r-xp 00000000 08:32 396648                     /usr/lib/libm-2.20.so
7f13cd544000-7f13cd744000 ---p 00103000 08:32 396648                     /usr/lib/libm-2.20.so
7f13cd744000-7f13cd745000 r--p 00103000 08:32 396648                     /usr/lib/libm-2.20.so
7f13cd745000-7f13cd746000 rw-p 00104000 08:32 396648                     /usr/lib/libm-2.20.so
7f13cd746000-7f13cd75b000 r-xp 00000000 08:32 399612                     /usr/lib/libz.so.1.2.8
7f13cd75b000-7f13cd95a000 ---p 00015000 08:32 399612                     /usr/lib/libz.so.1.2.8
7f13cd95a000-7f13cd95b000 r--p 00014000 08:32 399612                     /usr/lib/libz.so.1.2.8
7f13cd95b000-7f13cd95c000 rw-p 00015000 08:32 399612                     /usr/lib/libz.so.1.2.8
7f13cd95c000-7f13cdab6000 r-xp 00000000 08:32 420112                     /usr/lib/libxml2.so.2.9.2
7f13cdab6000-7f13cdcb5000 ---p 0015a000 08:32 420112                     /usr/lib/libxml2.so.2.9.2
7f13cdcb5000-7f13cdcbd000 r--p 00159000 08:32 420112                     /usr/lib/libxml2.so.2.9.2
7f13cdcbd000-7f13cdcbf000 rw-p 00161000 08:32 420112                     /usr/lib/libxml2.so.2.9.2
7f13cdcbf000-7f13cdcc1000 rw-p 00000000 00:00 0 
7f13cdcc1000-7f13cde5a000 r-xp 00000000 08:32 396649                     /usr/lib/libc-2.20.so
7f13cde5a000-7f13ce05a000 ---p 00199000 08:32 396649                     /usr/lib/libc-2.20.so
7f13ce05a000-7f13ce05e000 r--p 00199000 08:32 396649                     /usr/lib/libc-2.20.so
7f13ce05e000-7f13ce060000 rw-p 0019d000 08:32 396649                     /usr/lib/libc-2.20.so
7f13ce060000-7f13ce064000 rw-p 00000000 00:00 0 
7f13ce064000-7f13ce0d5000 r-xp 00000000 08:32 436542                     /usr/lib/libcurl.so.4.3.0
7f13ce0d5000-7f13ce2d4000 ---p 00071000 08:32 436542                     /usr/lib/libcurl.so.4.3.0
7f13ce2d4000-7f13ce2d6000 r--p 00070000 08:32 436542                     /usr/lib/libcurl.so.4.3.0
7f13ce2d6000-7f13ce2d7000 rw-p 00072000 08:32 436542                     /usr/lib/libcurl.so.4.3.0
7f13ce2d7000-7f13ce2d8000 rw-p 00000000 00:00 0 
7f13ce2d8000-7f13ce313000 r-xp 00000000 08:32 428363                     /usr/lib/libflickcurl.so.0.0.0
7f13ce313000-7f13ce512000 ---p 0003b000 08:32 428363                     /usr/lib/libflickcurl.so.0.0.0
7f13ce512000-7f13ce515000 r--p 0003a000 08:32 428363                     /usr/lib/libflickcurl.so.0.0.0
7f13ce515000-7f13ce516000 rw-p 0003d000 08:32 428363                     /usr/lib/libflickcurl.so.0.0.0
7f13ce516000-7f13ce538000 r-xp 00000000 08:32 396562                     /usr/lib/ld-2.20.so
7f13ce6f0000-7f13ce700000 rw-p 00000000 00:00 0 
7f13ce736000-7f13ce737000 rw-p 00000000 00:00 0 
7f13ce737000-7f13ce738000 r--p 00021000 08:32 396562                     /usr/lib/ld-2.20.so
7f13ce738000-7f13ce739000 rw-p 00022000 08:32 396562                     /usr/lib/ld-2.20.so
7f13ce739000-7f13ce73a000 rw-p 00000000 00:00 0 
7fff817e0000-7fff81801000 rw-p 00000000 00:00 0                          [stack]
7fff819f0000-7fff819f2000 r--p 00000000 00:00 0                          [vvar]
7fff819f2000-7fff819f4000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

Using the latest version on an up-to-date Arch Linux:

$ flickcurl --version
1.26
$ uname --kernel-name --kernel-release --kernel-version --machine --processor --hardware-platform --operating-system
Linux 3.18.2-2-ARCH #1 SMP PREEMPT Fri Jan 9 07:37:51 CET 2015 x86_64 unknown unknown GNU/Linux
$ cat ~/.flickcurl.conf
[flickr]
oauth_client_key=[...]
oauth_client_secret=[...]

Delimiter at the end of output of flickcurl_array_join in src/common.c

There is a bug in function flickcurl_array_join(...) in src/common.c which adds delimiter also after the last array item (at the end of output). See the following patch of 2e5b647 tree which should fix the bug (confirmed):

diff -urN src/common.c.old src/common.c
--- src/common.c.old    2015-01-18 15:12:23.974823106 +0100
+++ src/common.c        2015-01-18 15:16:31.390816620 +0100
@@ -1934,7 +1934,7 @@
     size_t item_len = strlen(array[i]);
     memcpy(p, array[i], item_len);
     p += item_len;
-    if(i < array_size)
+    if(i < array_size-1)
       *p++ = delim;
   }
   *p = '\0';

Parameters do not seem to be resetting

In 1.26 and the latest in this repository, I have found that the parameters used to create each URI are not being reset after subsequent calls to some methods used in flickcurl. Please look at the following Gist as an example:

https://gist.github.com/patrickjennings/0d5657d2463395c4e229

The program fails at flickcurl_oauth_create_access_token because the parameters used in the call to flickcurl_oauth_create_request_token are still present in the URI created for the call. If I do not use the function flickcurl_oauth_create_request_token before flickcurl_oauth_create_access_token, the program works properly.

Is there a way to clear the parameters used to create the URI for each API call or should flickcurl reset the parameter list each time an API call is made?

auth-create does not work on Mac OS 10.9

I installed flick curl with brew. I cannot get flickcurl 1.26 to get authorisation from flickr.
This is the error:

flickcurl(81735,0x7fff7b6c4310) malloc: *** error for object 0x7fc911c42a80: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

I also compiled it from sources. I don't know if I can fix it.
Is there another way to get the authorisation for flickcurl using the browser?

Authorization double free or corruption error

I'm new to C and making progress getting flickcurl setup. I keep running into this one error and am a little stuck on where the problem might be. Any tips?

Command used: flickcurl oauth-create

*** Error in `flickcurl': double free or corruption (fasttop): 0x0000000000f3b8f0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x80996)[0x7f42fdb66996]
/usr/lib/libflickcurl.so.0(flickcurl_free_form+0x27)[0x7f42fe33c05c]
/usr/lib/libflickcurl.so.0(flickcurl_oauth_create_request_token+0x2ee)[0x7f42fe364428]
flickcurl[0x41328f]
flickcurl[0x408042]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f42fdb07de5]
flickcurl[0x407239]

install problem

Am not exactly sure what's going on, but I end up here, on Ubuntu 11.04:

$ flickcurl -h
flickcurl: error while loading shared libraries: libflickcurl.so.0: cannot open shared object file: No such file or directory

Any tips on narrowing this down?

very minor fix for gcc 4.2.0

in src/vsnprintf.c, at line 99 and 102, there is a space in operator + = and > = and GCC misunderstood them.

NOTE: I'm using a cross compiler (with old uclibc) so I don't know state of current vsnprintf

collections.getTree segfault

Is this a known problem? Using the latest version in Arch Linux:

$ flickcurl --version
1.26
$ flickcurl collections.getTree
Segmentation fault (core dumped)

photos.search result not "stable" - paging not usable

I did a search for my pictures having a certain tag using the flickcurl CLI tool. I noticed, that when I do the exact same search again, the results are different. Because of this, paging cannot be used in a useful way.

Example:

$ flickcurl photos.search per-page 3 page 2 user me tags cassandra
$ flickcurl photos.search per-page 3 page 2 user me tags cassandra > /tmp/search.1
$ flickcurl photos.search per-page 3 page 2 user me tags cassandra > /tmp/search.2
$ cmp /tmp/search.? 
/tmp/search.1 /tmp/search.2 differ: byte 136, line 3

Search outputs:

  • search.1
  • search.2
  • NB: The images returned in the searches have now been set to be non-public.

Now, if the two searches would have returned the same output, the cmp should't have returned anything (because the output would've been identical). And when I manually compare the files /tmp/search.1 and /tmp/search.2 (ie. the output of both photos.search invocations), I see that indeed other pictures have been returned.

$ diff -U0 /tmp/search.{1,2}
--- /tmp/search.1	2017-02-13 10:10:45.702682787 +0100
+++ /tmp/search.2	2017-02-13 10:10:47.677719128 +0100
@@ -3 +3 @@
-photo with URI (Unknown) ID 30908489162 and 0 tags
+photo with URI (Unknown) ID 31050737945 and 0 tags
…
10:16% flickcurl -V  
Flickr API utility 1.25
Flickcurl home page: http://librdf.org/flickcurl/
Copyright (C) 2007-2013 David Beckett - http://www.dajobe.org/
License: LGPL 2.1 or newer, GPL 2 or newer, Apache 2.0 or newer.
See http://librdf.org/flickcurl/ for full terms.

Try `flickcurl --help' for more information.
(1)10:16% lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.2 LTS
Release:	16.04
Codename:	xenial

hello, i have a upload problem~

i install this app on the archlinux via AUR.
but when i upload a pic the console shows

tink@arch>:~/1>flickcurl upload 1.jpg
flickcurl: Uploading file 1.jpg
flickcurl: ERROR: Call failed with error 0 - (null) (HTTP 401)
flickcurl: Command upload failed

i dont know why.

thanx!

double free or corruption (!prev):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875800
$ flickcurl oauth.create
*** Error in `flickcurl': double free or corruption (!prev): 0x0176b510 ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x698aa)[0xb72e18aa]
/lib/i386-linux-gnu/libc.so.6(+0x705f7)[0xb72e85f7]
/lib/i386-linux-gnu/libc.so.6(+0x70e46)[0xb72e8e46]
/usr/lib/i386-linux-gnu/libflickcurl.so.0(flickcurl_free_form+0x22)[0xb7748a62]
/usr/lib/i386-linux-gnu/libflickcurl.so.0(flickcurl_oauth_create_request_token+0x201)[0xb7766f61]
flickcurl(+0xce50)[0x469e50]
flickcurl(main+0x62c)[0x46425c]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf6)[0xb7290456]
flickcurl(+0x7310)[0x464310]
======= Memory map: ========
0045d000-0047c000 r-xp 00000000 08:08 65457 /usr/bin/flickcurl
0047c000-0047d000 r--p 0001e000 08:08 65457 /usr/bin/flickcurl
0047d000-0047f000 rw-p 0001f000 08:08 65457 /usr/bin/flickcurl
00a1b000-017a5000 rw-p 00000000 00:00 0 [heap]
b4000000-b4021000 rw-p 00000000 00:00 0
b4021000-b4100000 ---p 00000000 00:00 0
b41d4000-b41d9000 r-xp 00000000 08:08 228674 /lib/i386-linux-gnu/libnss_dns-2.25.so
b41d9000-b41da000 r--p 00004000 08:08 228674 /lib/i386-linux-gnu/libnss_dns-2.25.so
b41da000-b41db000 rw-p 00005000 08:08 228674 /lib/i386-linux-gnu/libnss_dns-2.25.so
b41db000-b41e6000 r-xp 00000000 08:08 228676 /lib/i386-linux-gnu/libnss_files-2.25.so...

Could not build without gtk-doc

I do not really need it, just the lib and tools. 1.26 was built by a touch, 1.27 was tough, needed to comment some lines of sources, no easy way of doing it.

people.findByUsername doesn't work with my username

I can't find my own user's ID with findByUsername:

$ flickcurl people.findByUsername l0b0
flickcurl: ERROR: Method flickr.people.findByUsername failed with error 1 - User not found
flickcurl: Command people.findByUsername failed

people.findByEmail still works.

$ flickcurl --version
1.26

No shared library in Windows?

I have built the package (1.26), using the win32_flickcurl_config.h from the git repo on Windows. The executable is workig well, I can use it without any problem after configuration to reach Flickr. So far so good.
However there is only a static library (libflickcurl.a) produced, and no shared libary (like libflickcurl.dll) is being created, altought I have tried to use ./configure --enable-shared

Is there any way to build the shared library or only a static library version is available?

oauth-create always fails: Method flickr.oauth.request_token failed with error 0 - (null) (HTTP 401)

Hi!

I downloaded FlickCurl 1.24 and compiled it under Windows 7 using Visual Studio 2010. No matter if I start the utility tool (flickcurl oauth-create) or try to doing authentication directly in the code (as it is described in http://librdf.org/flickcurl/api/flickcurl-auth-authenticate.html), I always get the message stated above.

What am I doing wrong? I'm definitely using the right Client Key and Client Secret.

Thanks for all your answers!

Cheers,
Michael

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.