Open-EO / openeo-earthengine-driver

openEO back-end driver for Google Earth Engine.
Apache License 2.0
21 stars 7 forks source link

Cannot upload a file into a subfolder #39

Closed flahn closed 4 years ago

flahn commented 4 years ago

Hey,

I just tried to upload a file into a custom subfolder like /subfolder/test.json. I get a 404 back with a HTML. Uploading a file into the top level folder works without problems.

API version 1.0.0-rc.2

m-mohr commented 4 years ago

Hey, in Postman it's working for me. What's the exact HTTP request you are doing?

Postman did (CURL):

curl --location --request PUT 'http://earthengine.openeo.org/v1.0/files/hello/test.txt' \
--header 'Authorization: Bearer basic//...' \
--header 'Content-Type: application/octet-stream' \
--data-raw 'Test!!!'
flahn commented 4 years ago
PUT https://earthengine.openeo.org/v1.0/files/subfolder%2Ftest%2Ejson
Headers:

Accept        application/json, text/xml, application/xml, */*
Content-Type                          application/octet-stream
Authorization                          Bearer ****

I guess then the url encoding is the issue. Thanks

m-mohr commented 4 years ago

Yes, path must not be URL encoded according to the API spec. :-)