owncloud / web

:dragon_face: Next generation frontend for ownCloud Infinite Scale
https://owncloud.dev/clients/web/
GNU Affero General Public License v3.0
429 stars 161 forks source link

A file (already shared with a user as a viewer) when opened through a public link with `internal` role is shown as a folder. #8284

Closed roshanlc closed 1 year ago

roshanlc commented 1 year ago

Description of issue:

When a file (already shared with a user as a viewer) is opened through a public link with internal role by that user, it is shown as a folder.

image

Steps to reproduce

  1. Create a folder (say folderToShare) and a file (say fileToShare) at the root of personal space.
  2. Then share both of them with user (say einstein) as Viewer
  3. User einstein has accepted both the shares.

image

  1. Create public links for both the objects ( folderToShare and fileToShare ) and change the role of both the public links to internal
  2. Now, try opening the both the links as user einstein

Actual behaviour

For folder, it is shown properly.

image

For file, it is shown in a similar way as that of a folder.

image

Environment general

Backend (ownCloud Core or Infinite Scale): Infinite Scale

Environment ownCloud Infinite Scale

Version: Tried with two versions:

Environment ownCloud WebUI

Version: Tried with two versions:

Operating system:

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

Client configuration

Browser:

tbsbdr commented 1 year ago

tahnks @roshanlc for bringing up this issue! @kulmann @JanAckermann reproduced on wopi latest - the internal link does not work for files at all. can you confirm?

JammingBen commented 1 year ago

Has been fixed via https://github.com/owncloud/web/pull/8310.