You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No permission on shared folders while permission is set. -> 6.0.0a #6463
@githubrsys works for me. I also tried using a dir name with a "&" character and it works.
Can you try sharing any other folder and see whether the issue still appears ?
Try with a folder under the root '/TestRoot' then another one under whichever folder the "Privat David & Elisa" is in.
What's the real path of "Privat David & Elisa" in the original user's storage ? Just trying to find out whether there are conflicting permissions, which shouldn't happen.
@PVince81 I´ve now generated a new testuser to share with. Took an existing folder under root named "Werbung" so there are no "$&*" Items in the path
with the same result. The testuser cannot change the folder. . .
Now I have created a new folder named "testfolder" whithin the new created user and shared it back to my user. In the sharing process you can see that there is one more checkbox and my user is able to change the content.
It seems that only old users have this issue. New created users don´t.
New created users generate permission "31" old users do "27"
Look at the screenshots. The first one is the sharing process from an old user, which has not the checkbox create. The last screenshot shows the process from a new generated user which has the checkbox "create". So the issue seem to be within the user itself, so it seems.
Ok, it's not related to "new" users.
It looks like the german translation has "eaten" the "hinzufügen".
Please try switching to english when creating the share.
Looks like the "possiblePermissions" is read from the file's tr attribute data-permissions.
For some strange reason those "broken" files have a permission of 27 instead of 31 (all permissions).
I checked the oc_permissions table and newly created files automatically get 27 as permission (all except create).
Still, in the UI data-permissions is 31 for some reason until the file is shared.
Something weird going on with file permissions. CC @schiesbn @icewind1991
Ok... I was actually testing with files. Files should never have the "creatable" checkbox. There's another but that still shows the checkbox initially.
Can you try sharing a folder from Elisa's account and see whether the permission issue appears there ?
If it doesn't, then it is definitely related to the hash-type storages.
@githubrsys cool, thanks for the info.
Did your 5.0.14 was migrated from OC 4 ? I don't know when those hash storage ids existed (hope @icewind1991 can help clarifying).
As far as I understand, the evolution of the storage ids is: hash id -> "local::" home storages -> "home::" storages.
I do know that there was no migration from "local::" to "home::" (#6493), BUT ownCloud 6 should work fine with "local::" storages. So sharing files from the "elisa" user should work fine.
Can you try this out to confirm this ?
@icewind1991 can we safely manually change the hash ids in the DB to the home ones ?
Ok, just saw your message. So sharing from "elisa" indeed works which is good news.
If you like we can try and fix your DB now.
Please backup first.
Then replace the hash id with "home::" and your user name.
For Elisa, if you like, you can also replace it with "home::elisa" (notice that the colon appears twice)
As part of #6493 a script will be developed to fix these issues in the future (but might take some time until this is done and tested)
TBH: I don´t remember really. Perhaps this is an information which should be logged in the DB for further development. So it is possible to see the history of the used cores.
I can only suggest to optimize the quality insurance process if there´s any :-)
Every release has a lot of "no go" glitches, and a smooth migration is really heavily needed to avoid the loss of trust into the project.
@githubrsys yes, we need to improve migration testing.
We do test migrations, but it's difficult to cover all possible cases.
There are many parameters like whether you upgraded from older versions (OC 4), what PHP version you had/have (PHP bugs) which database, OS, which apps are installed, what data is in the DB, etc. So it's hard to cover everything.
We hope that more people can help with testing such cases. But it seems most people prefer to wait for the final release to try it out. If more people could help testing, at least from the RC versions, it might help a lot (without forgetting to backup of course). 😄
It´s really a problem that a lot of people do wait. But in the end they do wait as they expect an smooth working final release. So the only possibility is to gain the group of beta testers. How this ever is made.
Other projects can run unit tests where a lot of cases are covered. It is no excuse to say we have a lot of parameters. This is true to every other project. One thing is clear cut. The better the last stable release was and the better the migration scenario is tested, the better it is for the project at all.
So the task is:
write standard migration scenarios with different circumstances
write standard installation scenarios with different circumtances
let those scenarios get run by unit and human tests, where the human has to be an dedicated person that feels responsible to be part of the beta team. Invite people to do so.
don´t release stables too often
consider to initiate or name a "Long Term Support" Version which is know to be the most stable release
keep in mind that less new users come to this project but more users are "stickers" where the migration becomes more and more important.
Activity
karlitschek commentedon Dec 17, 2013
@schiesbn
PVince81 commentedon Dec 18, 2013
@githubrsys works for me. I also tried using a dir name with a "&" character and it works.
Can you try sharing any other folder and see whether the issue still appears ?
Try with a folder under the root '/TestRoot' then another one under whichever folder the "Privat David & Elisa" is in.
What's the real path of "Privat David & Elisa" in the original user's storage ? Just trying to find out whether there are conflicting permissions, which shouldn't happen.
githubrsys commentedon Dec 18, 2013
@PVince81 I´ve now generated a new testuser to share with. Took an existing folder under root named "Werbung" so there are no "$&*" Items in the path
with the same result. The testuser cannot change the folder. . .
BTW: It´s an migrated OC instance from 5.x
PVince81 commentedon Dec 18, 2013
We need more detailed info.
Can you please fill in https://raw.github.com/owncloud/core/master/issue_template.md ?
Also, can you try this on your database:
to check the permissions on the two folders you shared.
githubrsys commentedon Dec 18, 2013
@PVince81
Now I have created a new folder named "testfolder" whithin the new created user and shared it back to my user. In the sharing process you can see that there is one more checkbox and my user is able to change the content.
It seems that only old users have this issue. New created users don´t.
New created users generate permission "31" old users do "27"
PVince81 commentedon Dec 18, 2013
What do you mean with "one more checkbox" ?
Does it mean it works when you share it this way ?
githubrsys commentedon Dec 18, 2013
@PVince81
Look at the screenshots. The first one is the sharing process from an old user, which has not the checkbox create. The last screenshot shows the process from a new generated user which has the checkbox "create". So the issue seem to be within the user itself, so it seems.
PVince81 commentedon Dec 18, 2013
Ok, it's not related to "new" users.
It looks like the german translation has "eaten" the "hinzufügen".
Please try switching to english when creating the share.
I'll have a look what is causing this.
githubrsys commentedon Dec 18, 2013
It is not caused by the translation. If I change the language it remains faulty.
PVince81 commentedon Dec 18, 2013
Ok, you're right.
I think I got steps to reproduce:
It looks like when a file was shared at least once before, the "create" never appears again.
Only new files that have never been shared have it.
Weird stuff...
I'll check the code to see under what conditions that checkbox is being hidden.
PVince81 commentedon Dec 18, 2013
Looks like the "possiblePermissions" is read from the file's tr attribute data-permissions.
For some strange reason those "broken" files have a permission of 27 instead of 31 (all permissions).
PVince81 commentedon Dec 18, 2013
getDirectoryContents()returns the wrong permissions... need to go deeper.PVince81 commentedon Dec 18, 2013
I checked the
oc_permissionstable and newly created files automatically get27as permission (all except create).Still, in the UI
data-permissionsis 31 for some reason until the file is shared.Something weird going on with file permissions. CC @schiesbn @icewind1991
PVince81 commentedon Dec 18, 2013
Ok... I was actually testing with files. Files should never have the "creatable" checkbox. There's another but that still shows the checkbox initially.
Will try again with subdirs.
8 remaining items
PVince81 commentedon Dec 18, 2013
Can you try sharing a folder from Elisa's account and see whether the permission issue appears there ?
If it doesn't, then it is definitely related to the hash-type storages.
What was the first OC version you migrated from ?
githubrsys commentedon Dec 18, 2013
@PVince81
I dived into another instance of the server which was initially setup with 5.0.14 and was migrated to 6.0.0a which seems to have the same issue.
Another instance
My instance sharing from elisa to me
So the issue is that the storages are not migrated to new layout -cleanly.
PVince81 commentedon Dec 18, 2013
@githubrsys cool, thanks for the info.
Did your 5.0.14 was migrated from OC 4 ? I don't know when those hash storage ids existed (hope @icewind1991 can help clarifying).
As far as I understand, the evolution of the storage ids is: hash id -> "local::" home storages -> "home::" storages.
I do know that there was no migration from "local::" to "home::" (#6493), BUT ownCloud 6 should work fine with "local::" storages. So sharing files from the "elisa" user should work fine.
Can you try this out to confirm this ?
@icewind1991 can we safely manually change the hash ids in the DB to the home ones ?
PVince81 commentedon Dec 18, 2013
Ok, just saw your message. So sharing from "elisa" indeed works which is good news.
If you like we can try and fix your DB now.
Please backup first.
Then replace the hash id with "home::" and your user name.
For Elisa, if you like, you can also replace it with "home::elisa" (notice that the colon appears twice)
As part of #6493 a script will be developed to fix these issues in the future (but might take some time until this is done and tested)
githubrsys commentedon Dec 18, 2013
@PVince81
TBH: I don´t remember really. Perhaps this is an information which should be logged in the DB for further development. So it is possible to see the history of the used cores.
githubrsys commentedon Dec 18, 2013
@PVince81
Changing the storages worked flawless. The permission do not alter. I suppose to change them manually once ?
PVince81 commentedon Dec 18, 2013
Yes, you only need to do this once.
Newly created users will automatically use the "home::" format.
If this works correctly for you, let's close this ticket and follow up in #6493
githubrsys commentedon Dec 18, 2013
I did not alter the permissions but truncated the permissions table. After that my user could see the "create" checkbox.
So everything is fine now.
PVince81 commentedon Dec 18, 2013
Glad it works again for you 😄
githubrsys commentedon Dec 18, 2013
@PVince81
Thank you for your help and patience.
I can only suggest to optimize the quality insurance process if there´s any :-)
Every release has a lot of "no go" glitches, and a smooth migration is really heavily needed to avoid the loss of trust into the project.
Cheers.
PVince81 commentedon Dec 18, 2013
@githubrsys yes, we need to improve migration testing.
We do test migrations, but it's difficult to cover all possible cases.
There are many parameters like whether you upgraded from older versions (OC 4), what PHP version you had/have (PHP bugs) which database, OS, which apps are installed, what data is in the DB, etc. So it's hard to cover everything.
We hope that more people can help with testing such cases. But it seems most people prefer to wait for the final release to try it out. If more people could help testing, at least from the RC versions, it might help a lot (without forgetting to backup of course). 😄
githubrsys commentedon Dec 18, 2013
@PVince81
It´s really a problem that a lot of people do wait. But in the end they do wait as they expect an smooth working final release. So the only possibility is to gain the group of beta testers. How this ever is made.
Other projects can run unit tests where a lot of cases are covered. It is no excuse to say we have a lot of parameters. This is true to every other project. One thing is clear cut. The better the last stable release was and the better the migration scenario is tested, the better it is for the project at all.
So the task is:
just my 84 cents of wisdom
cheers
David
PVince81 commentedon Dec 18, 2013
There's a project in progress for automated tests which should hopefully help improve this in the future: https://github.com/owncloud/acceptance-testing