Skip to content

[FEATURE REQUEST] "Open in Web" for native clients #3672

Closed

Description

@pmaier1

Story
As a client user I want to open a file in the Web Office directly from the context menu so that I can easily start collaborating with others

Specifics

  • Infinite Scale only
  • Use App provider backend
  • Timeline ~ mid August

Activity

  1. jesmrec commented on May 24, 2022

    @jesmrec
    Member

    @pmaier1 Open file in Web Office means open out of the mobile client (web browser)? or open inline (internal web view)?

  2. pmaier1 commented on May 24, 2022

    @pmaier1
    Author

    @pmaier1 Open file in Web Office means open out of the mobile client (web browser)? or open inline (internal web view)?

    Web browser

  3. pmaier1 commented on May 24, 2022

    @pmaier1
    Author

    Referencing iOS ticket owncloud/ios-app#1127

  4. jesmrec commented on May 24, 2022

    @jesmrec
    Member

    Will be this feature something for everyone? or only for customers?

  5. tbsbdr commented on Jul 19, 2022

    @tbsbdr

    This feature is planned for everyone @jesmrec

  6. michaelstingl commented on Aug 15, 2022

    @michaelstingl
    Contributor
  7. abelgardep commented on Aug 22, 2022

    @abelgardep
    Contributor

    @michaelstingl

    First steps, authentication is done in the browser. I already logged in some minutes ago, that's why the session is kept in the video.

    first_steps_open_in_web_android.mp4
  8. linked a pull request that will close this issue[Feature] Open in web #3737on Aug 24, 2022
  9. abelgardep commented on Aug 26, 2022

    @abelgardep
    Contributor

    @michaelstingl

    Open in web feature needs clarification for this first iteration.

    1. When there is no app that can open a specific file in web, we receive a 500 when asking for the uri to open it. Not sure if this is intended or not. I couldn't find info about this case in https://owncloud.dev/services/app-registry/apps/#open-a-file-with-the-owncloud-web

    2. In Android, this option is only available in the details view. Does this work for you? We have refactored lots of files in the new architecture. That means that if we need to add it somewhere else, we would implement this feature in already deleted files in the new architecture branch...

    3. Open in web option is visible as soon as open_web_url is retrieved from capabilities. When the user clicks on the Open in web option, we trigger the request to the endpoint. If we receive the Uri, we open it. If we get an error(including 1. point error) we show an error message.

  10. wkloucek commented on Aug 26, 2022

    @wkloucek
    1. When there is no app that can open a specific file in web, we receive a 500 when asking for the uri to open it. Not sure if this is intended or not. I couldn't find info about this case in https://owncloud.dev/services/app-registry/apps/#open-a-file-with-the-owncloud-web

    Looks like a bug / not considered case in the API implementation. But shouldn't be blocker since you can get all supported mimetypes from the /app/list endpoint.

    1. Open in web option is visible as soon as open_web_url is retrieved from capabilities. When the user clicks on the Open in web option, we trigger the request to the endpoint. If we receive the Uri, we open it. If we get an error(including 1. point error) we show an error message.

    Should only be offered for mimetypes from the /app/list endpoint.

  11. jesmrec commented on Aug 31, 2022

    @jesmrec
    Member

    First iteration includes:

    • Open in web menu option located in Details view.
    • Open in web option for every available file in oCIS account. apps_url capability is only used to check the feature availability (only oCIS).
    • If open-with-web endpoints returns 200 -> uri fetched and file opened in browser (it might need extra authentication)
    • If open-with-web endpoints returns error (no matter if 4xx or 5xx) -> error displayed in app
    • If device does not have connection -> error displayed in app

    TODO:

    • Check in apps_url endpoint from capabilities the available mime types to filter dynamically which should include the Open in web option and which not
    • List in menu all available apps for every file/mime type
    • Open in web option in list of files instead of Details. Once sync engine is rewritten, it could be moved as another operation in list of files.
    • Associate thumbnails to mime types as apps_url capability retrieves (N2H)
    • Improve error handling, depending on backend errors.
    • Creation of new files, when available, in backend

    issues will be created.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions