Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download a file in a subfolder in a sharedlink is not working #2615

Merged
merged 2 commits into from
Dec 12, 2016

Conversation

ArtificialOwl
Copy link
Member

Downloading a file in a subfolder returns a 404.
The $node created using the path (GET) parameter is not used when executing fileListDownloaded()

the $node created using the path (GET) parameter is not used when executing fileListDownloaded()
@mention-bot
Copy link

@daita, thanks for your PR! By analyzing the history of the files in this pull request, we identified @schiessle, @rullzer and @LukasReschke to be potential reviewers.

@LukasReschke
Copy link
Member

cc @rullzer Thoughts?

@LukasReschke
Copy link
Member

Can reproduce.

@schiessle
Copy link
Member

Tested and works, I can also see why this is needed. At the moment I don't have a better idea how to solve it.... so 👍

Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in emitAccessShareHook()

				$itemType = $share->getNodeType();
				$itemSource = $share->getNodeId();

will get the original node's data. My gut feeling is to have this adjusted, too.

LukasReschke added a commit that referenced this pull request Dec 12, 2016
For #2615

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
@@ -542,9 +542,9 @@ public function downloadShare($token, $files = null, $path = '', $downloadStartS
* @param Share\IShare $share
* @param array $files_list
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PHPDoc needs update here.

Signed-off-by: Maxence Lange <maxence@pontapreta.net>
@blizzz
Copy link
Member

blizzz commented Dec 12, 2016

With regard to #2615 (review) the hook is caught by the auditing app only (within the Nextcloud org on Github), but uses the node type. Probably it's OK to continue with the fix as is and if necessary adjust for 11.0.1. Along with a regression test.

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Lets get this in. I'll see if I can add tests later!

@LukasReschke LukasReschke added 4. to release Ready to be released and/or waiting for tests to finish and removed feature: sharing labels Dec 12, 2016
@LukasReschke LukasReschke merged commit e490883 into master Dec 12, 2016
@LukasReschke LukasReschke deleted the daita-sharecontroller branch December 12, 2016 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants