Open GoogleCodeExporter opened 8 years ago
Hi,
Looks like an issue in the django-piston server which appends the "type=audio"
parameter to the signature base (parsing it from the request body). You can
always add:
System.setProperty("debug", "1");
and then "adb logcat" in a shell to see what signPost thinks the signature base
(SBS) is. I suspect a mismatch.
Original comment by andy.loa...@gmail.com
on 27 Nov 2010 at 3:38
Hi,
Is there any fix for this?
I'm also trying to upload a file using multipart to a rest url but I'm getting
invalid signature error though it works very well for simple get requests.
Thanks,
Hemant
Original comment by rajput.h...@gmail.com
on 11 Feb 2011 at 10:44
Hi,
I can only say that we use Signpost in the Qype app to upload images using
multipart requests with no problems. I'm not maintaining this library anymore
and I haven't yet found someone willing to take it over, so there will be no
fixes coming up in the near future.
Original comment by m.kaepp...@gmail.com
on 11 Feb 2011 at 12:47
I understand you are not maintaining the code anymore but can you post the java
that works with MultiPartEntity.
I have signpost working great with 1.2.1.1 and the http apache commons when
pushing a file with no metadata in a single entity to google, but when i set it
to multi-part and try to add two parts to the post to picasa (one with Metadata
atom+xml and one with the file) I get 'Unknown authorization header' with a 403
forbidden. Same headers, authorization, etc that works for just pushing the
file with no title and filename, etc.
If you could post your java that works it would be most helpful.
THanks a lot for a great class and all your work!
Matt
Original comment by mkoc...@gmail.com
on 7 Apr 2011 at 1:33
Trust me when I say: there is nothing OAuth specific about sending multipart
requests. OAuth takes a request's fingerprint over its request parameters, the
URL, and the HTTP verb. The payload is completely ignored, unless it contains
parameters as a query string (form encoded).
I don't think it makes sense to post my code here, since we use a generic
request interceptor to sign requests. It doesn't matter what the request
contains. Instead, try running your app with the -Ddebug flag set. This will
make Signpost print its SBS and Auth header to standard out, so you can compare
it to what your service providers expects.
Original comment by m.kaepp...@gmail.com
on 7 Apr 2011 at 7:14
Original issue reported on code.google.com by
timothe....@gmail.com
on 10 Jun 2010 at 6:38