Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

e2e tests for url stability #9897

Closed
Closed

Description

@kulmann

Description

Clients rely on URLs being correctly resolved in ownCloud Web for some features. We had some regressions recently (see links below), so I'd like to make sure with some new e2e tests that URLs in ownCloud Web resolve reliably.

Recent regressions

  1. Versions link opens web office #9868
  2. Share Jail private link doesn't resolve nicely in web #9867
  3. open-with-web endpoint not working #9804

New e2e tests

I'd like to see a new URL journey in web with at least the following features. Open for suggestions for additional features.

File details panels (regression no. 1)

The right sidebar within the files app holds a few details panels like details, sharing or versions. Clients can open the web ui in the file list with the versions panel opened in the right sidebar by appending ?details=versions to the private link. Same for the sharing panel by appending ?details=sharing to the private link. This behaviour must remain stable.

Resolving all plain private links (regression no. 2)

Clients have a feature for showing a file or folder in the web browser. This opens the private link (without additional url params) in the web browser. Currently the default behaviour of ownCloud Web is, that it shows the file in the file list if there is no editor for the file. And it opens the default viewer/editor for the file if there is one. This is fine like it is. A new e2e test should check that private links open in the web ui for cases: a) a file without viewer/editor, b) a file with viewer/editor, c) a folder, d) the root of a space, e) the (hardcoded!) share jail id. The last one (share jail) is an edge case which is currently broken. It can't resolve in web, because there is no file listing which shows the share jail itself as a child element. So this needs to redirect to the shared with me page (currently broken).

open-with-web endpoint (regression no. 3)

Clients can make a request to the open-with-web ocis endpoint to obtain the browser URL for opening the respective file in an app from the app provider, e.g. opening a file in OnlyOffice. Was recently broken, this is a very important product feature and must remain stable.

Activity

  1. kulmann commented on Oct 31, 2023

    @kulmann
    ContributorAuthor

    @ScharfViktor do you have additional URL related features in mind that should be represented in this journey?

  2. kulmann commented on Oct 31, 2023

    @kulmann
    ContributorAuthor

    @tbsbdr Fine to add this to one of the next sprints? I'd like to give this into the hands of @ScharfViktor

  3. kulmann commented on Oct 31, 2023

    @kulmann
    ContributorAuthor
  4. self-assigned this
    on Oct 31, 2023
  5. SwikritiT commented on Dec 18, 2023

    @SwikritiT
    Contributor

    Hi @kulmann for the 3rd regression
    I tried getting the URL for collabora with the following curl request

     curl -XPOST "https://host.docker.internal:9200/app/open-with-web" -d"file_id=<file-id>&app_name=Collabora" -vk -uadmin:admin
    

    Which gives me following response

    {"uri":"https://host.docker.internal:9200/external?app=Collabora\u0026contextRouteName=files-spaces-personal\u0026fileId=<file-id>"}
    

    As you can see the & is not sanitized it's still sent as the unicode number, is this the expected response , is it converted to & on client side or should this be a server issue?

  6. SwikritiT commented on Dec 19, 2023

    @SwikritiT
    Contributor

    for the Resolving all plain private links (regression no. 2) to write e2e test for this case a file without viewer/editor, the editor is enabled in CI, and locally. Is there any command that I can use to disable the editor for tests? Or does it require writing the new config file entirely?

    cc @kulmann @ScharfViktor

  7. v-scharf commented on Dec 19, 2023

    @v-scharf
    Contributor

    for the Resolving all plain private links (regression no. 2) to write e2e test for this case a file without viewer/editor, the editor is enabled in CI, and locally. Is there any command that I can use to disable the editor for tests? Or does it require writing the new config file entirely?

    together with @SwikritiT we decided to use a file for this case for which type there is no editor

  8. removed their assignment
    on Jan 11, 2024
  9. v-scharf commented on Feb 6, 2024

    @v-scharf
    Contributor

    close, as in completed

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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions