core icon indicating copy to clipboard operation
core copied to clipboard

[QA] user login sees confusing permission denied, when URL was copy - pasted

Open jnweiger opened this issue 2 years ago • 5 comments

Seen with core 10.13.0-alpha.1 (not specific to this version)

  • Log in as user admin and create a new user sally image

  • Admin navigates back to the normal file view image

  • Copy paste the current URL into a private browsing session https://oc10122-wnd-231rc2-20230807.jw-qa.owncloud.works/apps/files/?dir=/&fileid=8

image


  • When logging in as user sally, a permission denied error appears: image

  • The error is to be expected, as we get redirected back to the fileid=8, which is a folder private to admin.

Suggested enhancement:

  • Add a "[Continue]" button to the error page, that sends the user back to the base url of ownCloud.

Known workaround:

  • From the error page, shorten the URL by removing everything after the question mark ?.

jnweiger avatar Aug 07 '23 12:08 jnweiger

@IljaN this should be a nice entry-level job for your new student :-)

jnweiger avatar Aug 07 '23 12:08 jnweiger

A simiar situation happens, when pasting an admin settings url:

image

jnweiger avatar Aug 07 '23 12:08 jnweiger

Tested with today's https://patch-diff.githubusercontent.com/raw/owncloud/core/pull/40910.diff

image

image

  • [x] The redirect works, when owncloud is installed at the web root
  • [x] The redirect works, when owncloud is installed in a subfolder
  • [x] The redirect works with index.php less install and without.

jnweiger avatar Aug 11 '23 14:08 jnweiger

Would this also fix https://github.com/owncloud/openidconnect/issues/301 ?

jnweiger avatar Aug 17 '23 18:08 jnweiger

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 14 '24 01:02 github-actions[bot]

This issue has been automatically closed.

github-actions[bot] avatar Feb 25 '24 01:02 github-actions[bot]