maximilianvoss / toniebox-api

API to run commands on Toniebox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file upload not successful

hgschmie opened this issue · comments

I actually run the included test example and I see a file upload fail with 403:

Screen Shot 2021-06-30 at 16 56 29

(sorry for the screen shot; this is deep within the code). All the other API calls (me, chapter etc.) work fine.

When I try to reproduce that with my own code, I get a little more information:

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>InvalidAccessKeyId</Code>
  <Message>The AWS Access Key Id you provided does not exist in our records.</Message>
  <AWSAccessKeyId>ASIATDG5W6LNRQPGHC7F</AWSAccessKeyId> 
  <RequestId>N1H1CPR5VTAMFD25</RequestId>
  <HostId>7G6Kx7ZLuHhvFeIrJ8ocPfkwXN/BPGVe/Ei05XGt4nDQA4Hu3FGCe6mPr8etElcT1/kQMlw+vGY=</HostId>
</Error>

... but this matches the x-amz-credential that I received from the authenticated /file API call to toniecloud...

I am a bit confused here. Does that upload actually work in different scenarios?

Would be nice to get a new release that includes the merged changes. I managed to shadow the affected classes on the classpath for my project, but that's not really nice ;)

changes merged