owncloud / owncloud/core

Direct access to a subfolder using public link with password

Open
#40,130 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Type:Bug
Dominant language
PHP
Stars
8.8k
Forks
2.1k
Avg merge
20h 7m
Merged PRs (30d)
41

Description

Hello
I have a share link for a main folder. Under this folder 1-n subfolders can be created. However, these should not be released by their own release link, but are actually accessible via the release link of the main folder.
Is it possible, however, to jump directly to a subfolder by means of a parameter in the share link?

Example:
The public link with password for the main folder is: https://…/index.php/s/bdZAPWd8Y5XIU1N

Direct access to subfolders e.g. with
https://…/index.php/s/bdZAPWd8Y5XIU1N?path=/subfolder/subfolder2 basically works if you are already logged in.

If you are not yet logged in to OwnCloud and call up the link, the login screen appears and you end up in the main folder. However, I would like to land in the corresponding subfolder after logging in.

So for public links without password this is working with a link share like
https://..../index.php/s/0EM7HxxV2OJ0RWp?path=%2Fsubfolder

For public links with password protected links there is a redirect to e.g. https://....../index.php/s/0EM7HxxV2OJ0RWp/authenticate where the initial path variable is not passed.
I think there should be a redirect to https://..../index.php/s/0EM7HxxV2OJ0RWp/authenticate?path=%2Fsubfolder and the backend should handle this properly.

We have installed OwnCloud version 10.9.0 stable.

Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the password-protected public-link flow from the reported /index.php/s/... URL and inspect the redirect to /authenticate. Compare it with the working passwordless path flow; done means the requested path survives authentication and opens the specified subfolder after login.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.