-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
File and folder location is wrong at shared external folders #15858
Comments
// cc @schiesbn @rullzer |
Is this OC 8.0 only ? Anything that can be backported from 8.1 ? |
No, I somehow was in the wrong milestone-setting-mind from other projects. Affects both 8.1 and 8.0 |
Tested in last 8.1 version (2015-06-19). I can reproduce it. |
Not sure if we want to strip away the mount point (btw. a mount point doesn't need to be in the root folder). I think what we want is the complete path relative to the files folder, right? |
What I want is the full path of the sharee, not the sharer. So yes we need to strip away the mount point name |
@schiesbn @nickvergessen @rullzer possibly still an issue in 8.2 beta ? |
Yes, still a verify annoying issue changed the line numbers to match the new code position: core/lib/private/share/share.php Lines 282 to 288 in 1911472
|
This bug will fall off 8.2 if not resolved by 6 Oct |
I'm still not sure what's the right behavior here. If you want the full path we don't have to trip away the mount point but first get the complete path relative to /files and then strip away files/. Stripping away the mount point doesn't give you the full path but the relative path to the mount point. |
Atm there is no need to do this without taking a horrible performance panalty, there are plans to add a table which would allow this (mount point for users table) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Originally reported at owncloud/activity#284 by @tibmanus
lib/private/share/share.php#L282-L288
This code generates broken paths. Instead of
$path
starting withfiles/
it starts with the mount point name, so stripping should be until the next slash instead of hardcoded 5 characters?The text was updated successfully, but these errors were encountered: