This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
although docs for flickr.photos.setTags is saying that one should do HTTP POST request doing it returns: <?xml version="1.0" encoding="utf-8" ?> <rsp stat="fail"> <err code="112" msg="Method "flickr.photos.setTagsflickr.photos.setTags" not found" /> </rsp> method works fine if one does HTTP GET instead
Created attachment 68253 [details] TCP dump
I changed the method type for setTags to GET.
Integrated into 'main-golden', available in build *200808260201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/1032ff8774b4 User: PeterTLiu@netbeans.org Log: Fix for IZ #145019.
well, doing get is just a workaround for this so instead of changing request type of all set methods for all services which do require HTTP POST it would be better to fix POST request we're doing... As can be seen from a tcp dump I already attached: POST /services/rest?api_key=7b067a62dcecdb6316316363a4bb9f61&photo_id=2789422804&tags=myAppTag3&method=flickr.photos.setTags&auth_token=72157604346256405-a3fb1c26c337fad9&api_sig=dc66fb6dc0464d3091db0e5a64e358b1 ... ?api_key=7b067a62dcecdb6316316363a4bb9f61&photo_id=2789422804&tags=myAppTag3&method=flickr.photos.setTags&auth_token=72157604346256405-a3fb1c26c337fad9&api_sig=dc66fb6dc0464d3091db0e5a64e358b1 is, IMO, wrong HTTP POST request, correct one should be: POST /services/rest ... ?api_key=7b067a62dcecdb6316316363a4bb9f61&photo_id=2789422804&tags=myAppTag3&method=flickr.photos.setTags&auth_token=72157604346256405-a3fb1c26c337fad9&api_sig=dc66fb6dc0464d3091db0e5a64e358b1 Another issue here seems to be that in case of post request our api_sig is incorrect (I'm getting error 100 from flickr). I've found some useful answers about Flickr & POST at: http://www.flickr.com/groups/api/discuss/72157603810370933/
Integrated into 'main-golden', available in build *200808280201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/0310760d4556 User: PeterTLiu@netbeans.org Log: Fix for IZ #145019 (for java apps)
Reassigning to Ayub since he is now working on the fix.
ooops - just for the record - I've made a mistake in how the POST should look like - there must not be leading '?' on the line with request parameters, so correct format of the request is: POST /services/rest <request_headers> <empty_line> api_key=7b...1&photo_id=2...4&tags=myAppTag3&method=flickr.photos.setTags&auth_token=7...d9&api_sig=d...1 <empty_line> <empty_line> Sorry for that.
Fixed.
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/07edd2a9e155 User: Ayub Khan <ayubskhan@netbeans.org> Log: Fix issue#145019 - [saas][flickr] flickr.photos.set* should do POST properly
v.