-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The image space setting is broken. PROPFIND and GET methods give 404 #6874
Comments
This has been fixed and works again in ocis master. |
Yes, you're right. It seems that the file name is double URL encoded. Let me check. |
@kulmann, it seems like web encodes the webdav URL again before using it to download the space image. |
@C0rby Is it only for the space image in the graph drives response? |
All webdav URLs in the graph response will come URL encoded. |
Ok 👍 |
I tried to figure out why this is happening, the issue seems to be in our owncloud-sdk :( |
ownCloud Web UI 5.5.0
ocis via docker v.1.20
Steps:
Actual result:
request1: uploading file -PUT works correctly
https://host.docker.internal:9200/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%243e85a541-bb87-4a22-a83f-749886e3b55d/.space/Lake-Constazdxcnce.jpg
request2: setting file as space image - PATCH works correctly
https://host.docker.internal:9200/graph/v1.0/drives/1284d238-aa92-42ce-bdc4-0b0000009157%243e85a541-bb87-4a22-a83f-749886e3b55d
request3: getting image image PROPFIND works correctly
https://host.docker.internal:9200/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%243e85a541-bb87-4a22-a83f-749886e3b55d/.space/Lake-Constazdxcnce.jpg
Actual result:
request 4- 404 Not found: GET
https://host.docker.internal:9200/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%243e85a541-bb87-4a22-a83f-749886e3b55d/.space/Lake-Constazdxcnce.jpg?scalingup=0&preview=1&a=1&c=e4e33738f68aab8d755bb5027c108890&x=1200&y=1200
or if you try to upload png image
request 3 PROPFIND
https://host.docker.internal:9200/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%240d536bf9-b562-4aa2-80a9-08053c80ce04/.space/Screenshot%25202022-05-03%2520at%252009.27.10.png
- get 404 error<d:error xmlns:d="DAV" xmlns:s="http://sabredav.org/ns"><s:exception>Sabre\DAV\Exception\NotFound</s:exception><s:message>Resource not found</s:message></d:error>
The text was updated successfully, but these errors were encountered: