Repository navigation
Conversation
|
@rullzer maybe you have some time to review it? Thanks! |
|
👍 |
|
Easy to review and test, @MorrisJobke |
|
Handover to @LukasReschke :P |
|
Handsback to @MorrisJobke. |
There was a problem hiding this comment.
Might be safer to use trim($path, '/'). Never assume that getMountPoint will give you something with a leading slash...
There was a problem hiding this comment.
I want to remove the trailing slash, if it exists.
There was a problem hiding this comment.
Yes, my point was that you should also remove the leading slash if it exists.
There was a problem hiding this comment.
ah, ok... yes, makes probably sense. I will update the PR
There was a problem hiding this comment.
done @PVince81 please have another look, thanks!
There was a problem hiding this comment.
will push revert once Jenkins finished. Don't know why my IDE always manipulate this value since today...
There was a problem hiding this comment.
Welcome in the club ;)
There was a problem hiding this comment.
did it happen to you too? Any idea how to solve it? The strange thing is that it only happens since today but I didn't updated anything on my system and the branch already existed yesterday. Unless PHPStorm did some updates this morning in the background and didn't notified me I don't know what changed.
There was a problem hiding this comment.
Yup. Please complain at #14287 and write that we want this 🙊
There was a problem hiding this comment.
-1 string ? Is there a risk that sometimes it will be an int ?
There was a problem hiding this comment.
the parent column of filecache is an int - I'd expect this to be compared against -1 instead of '-1'
There was a problem hiding this comment.
to my knowledge PHP convert all query results to string. If you grep the code you will find places where we explicitly cast it back to int. But the result of a db query always returns all values as string.
There was a problem hiding this comment.
Is this covered by a unit test ? It would make sure that all tested DBs would return the proper value.
By the way, this PR seems to have no unit test change ?
There was a problem hiding this comment.
By the way, this PR seems to have no unit test change ?
We don't really have a way to test this explicitly because of all the static classes and methods.
There was a problem hiding this comment.
I can't wait for the full rewrite.
Fine by me.
There was a problem hiding this comment.
As said, that's the way it is done all over the code, most likely also on places where we have unit tests. If you search the internet you will also find various discussions where people always explain that this is how PHP works. But I changed the code for now to cast it to a int and then compare the int values, just to give us all a better feeling 😄
|
Tested with personal mount, works. Tested with system mount assigned to only user1, the share dropdown will show "Shared in externalmount with users, user2, user3". Might be a separate issue ? |
I can't reproduce it. Works also with system mount here. |
|
My steps:
Result: "Shared in MountPoint with users" Also tried:
Result: "Shared in MountPoint with users" |
|
A new inspection was created. |
|
@owncloud-bot retest this please |
|
These were my steps, yes. Strange. |
|
I retried the steps and it works now. Anyway, fine now 👍 |
1 similar comment
if it is a mount point we need to get the path from the mount manager
|
👍 It works in 8.1 RC2 |

steps to test:
Without this patch you will see:
"Shared in {item} with users"
With this patch:
"Shared in MountPoint with users"
fix #12106