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

File Permissions are not respected by the share dialogue #7311

Closed
micbar opened this issue Jul 21, 2022 · 0 comments · Fixed by #7317
Closed

File Permissions are not respected by the share dialogue #7311

micbar opened this issue Jul 21, 2022 · 0 comments · Fixed by #7317
Assignees
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Regression

Comments

@micbar
Copy link
Contributor

micbar commented Jul 21, 2022

Steps to reproduce

  1. Create a Share on a folder with some-file.txt from Alice to Bob with "Viewer" permissions
  2. Accept Share as Bob
  3. List the contents of Shares/myfolder as Bob
  4. Reshare the file some-file.txt as Bob to Brian with "Editor" permissions

Expected behaviour

  1. Bob should only see the viewer role in the selection

Actual behaviour

  1. Bob sees "Viewer" "Editor" and "Custom" Permission
  2. Bob can choose "Editor" and get a "Share could not be created" Error

Bildschirmfoto 2022-07-21 um 13 55 36

Environment general

Operating system:

Backend (ownCloud Core or Infinite Scale):
ocis 2.0.0-beta5
Web 5.7.0-rc.5

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

Environment ownCloud Infinite Scale

Version:

Updated from an older Infinite Scale or fresh install:

Where did you install Infinite Scale from:

Environment ownCloud Core

Web server:

Database:

PHP version:

Version: (see ownCloud admin page)

Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and put the link here.

The content of config/config.php:

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well-sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to diligently
remove *all* hostnames, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
@micbar micbar added Priority:p2-high Escalation, on top of current planning, release blocker Type:Regression labels Jul 21, 2022
@tbsbdr tbsbdr added Type:Bug Something isn't working and removed Type:Bug Something isn't working labels Jul 22, 2022
@JammingBen JammingBen self-assigned this Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Regression
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants