You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User downloads the preview of image file with width "32" and height "32"
e.g. curl http://172.17.0.1:9140/remote.php/dav/files/admin/testavatar.jpg\?x\=32\&y\=32\&forceIcon\=0\&preview\=1 -u admin:admin -v --output test.jpg
Expected
Preview of width "32" and height "32" should be downloaded
Actual
Preview of width and height same as the uploaded image is downloaded
While running the webDAV API test on OCIS it fails and gives output
width not as expected
Failed asserting that 1240 matches expected '32'.
The previews currently only work if the requests go through the proxy (port 9200) or if the ocis-webdav service is called directly (port 9115, but it only serves thumbnails for now the rest is still in ocis-reva)
No this is because currently the webdav code is seperated. Most of it is in reva but the code related to thumbnails is in ocis-webdav.
The proxy is redirecting the requests to the correct services.
Some context:
Requests authenticated with basic auth have to go through the oCIS proxy. There the proxy mints a JWT and puts it into the request context. This way the tests should be able to execute the tests using basic auth.
Activity
C0rby commentedon May 20, 2020
The previews currently only work if the requests go through the proxy (port 9200) or if the ocis-webdav service is called directly (port 9115, but it only serves thumbnails for now the rest is still in ocis-reva)
PVince81 commentedon Jul 6, 2020
is this because of authentication ?
so need to adjust the tests to use 9200, probably as part of owncloud/web#3601 @dpakach
C0rby commentedon Jul 6, 2020
No this is because currently the webdav code is seperated. Most of it is in reva but the code related to thumbnails is in ocis-webdav.
The proxy is redirecting the requests to the correct services.
PVince81 commentedon Jul 9, 2020
so what would be the next step to resolve this ?
C0rby commentedon Jul 9, 2020
Either this
Or change the port of the preview tests to 9115.
individual-it commentedon Aug 12, 2020
blocked by https://github.com/owncloud/ocis-thumbnails/issues/39
refs commentedon Jan 12, 2021
@C0rby is this still the case? if not, feel free to close the issue.
C0rby commentedon Jan 12, 2021
Technically this should work now. I just don't know if we need to change some configuration or so.
Needs to be checked.
C0rby commentedon Jan 12, 2021
Some context:
Requests authenticated with basic auth have to go through the oCIS proxy. There the proxy mints a JWT and puts it into the request context. This way the tests should be able to execute the tests using basic auth.
C0rby commentedon Apr 9, 2021
It works now when oCIS is started with
PROXY_ENABLE_BASIC_AUTH=trueand the requests are done against the proxy