Skip to content

Previews via webDAV API tests fails on OCIS #187

Closed

Description

@swoichha

Steps to reproduce

  • Create an user and upload an image
  • 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'.

"1240" is the width of the uploaded file

Activity

  1. C0rby commented on May 20, 2020

    @C0rby
    Contributor

    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)

  2. PVince81 commented on Jul 6, 2020

    @PVince81
    Contributor

    is this because of authentication ?

    so need to adjust the tests to use 9200, probably as part of owncloud/web#3601 @dpakach

  3. C0rby commented on Jul 6, 2020

    @C0rby
    Contributor

    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.

  4. PVince81 commented on Jul 9, 2020

    @PVince81
    Contributor

    so what would be the next step to resolve this ?

  5. C0rby commented on Jul 9, 2020

    @C0rby
    Contributor

    Either this

    so need to adjust the tests to use 9200, probably as part of owncloud/web#3601

    Or change the port of the preview tests to 9115.

  6. refs commented on Jan 12, 2021

    @refs
    Contributor

    @C0rby is this still the case? if not, feel free to close the issue.

  7. C0rby commented on Jan 12, 2021

    @C0rby
    Contributor

    Technically this should work now. I just don't know if we need to change some configuration or so.
    Needs to be checked.

  8. C0rby commented on Jan 12, 2021

    @C0rby
    Contributor

    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.

  9. added
    Category:Defect
    on Jan 13, 2021
  10. C0rby commented on Apr 9, 2021

    @C0rby
    Contributor

    It works now when oCIS is started with PROXY_ENABLE_BASIC_AUTH=true and the requests are done against the proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category:DefectType:Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions