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

[OCIS] Cannot create public links with permissions. #5248

Closed
dpakach opened this issue Oct 8, 2020 · 3 comments
Closed

[OCIS] Cannot create public links with permissions. #5248

dpakach opened this issue Oct 8, 2020 · 3 comments
Labels

Comments

@dpakach
Copy link
Contributor

dpakach commented Oct 8, 2020

Trying to set permissions on public links fails

curl -XPOST https://localhost:9200/ocs/v1.php/apps/files_sharing/api/v1/shares -d path=/hello -d permissions=7 -d shareType=3 -u einstein:relativity -ks | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>error</status>
    <statuscode>400</statuscode>
    <message>Could not read permission from request</message>
  </meta>
</ocs>
@dpakach dpakach changed the title Cannot create public links with permissions. [OCIS] Cannot create public links with permissions. Oct 8, 2020
@dpakach
Copy link
Contributor Author

dpakach commented Oct 8, 2020

This only happens when using certain permissions. for eg. permissions 7 fails but 15 works(it should use default permission if it cannot be determined as in oc10)

@amrita-shrestha amrita-shrestha transferred this issue from owncloud/product Dec 20, 2022
@amrita-shrestha
Copy link
Contributor

amrita-shrestha commented Dec 20, 2022

Link Share

0. Permission 0

  • OCIS - created with 0 (internal)
  • OC10 - share created with 1

4. Permission 4

  • OCIS
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
 <meta>
   <status>error</status>
   <statuscode>404</statuscode>
   <message>No share permission</message>
 </meta>
</ocs>
  • OC10
<?xml version="1.0"?>
<ocs>
  <meta>
    <status>failure</status>
    <statuscode>404</statuscode>
    <message>Public upload is only possible for publicly shared folders</message>
    <totalitems/>
    <itemsperpage/>
  </meta>
  <data/>
</ocs>

@amrita-shrestha amrita-shrestha added Type:Technical-Debt Interaction:Needs-help Asking some hints to engineering when the issue can't be reproduced and removed Type:Technical-Debt Interaction:Needs-help Asking some hints to engineering when the issue can't be reproduced p3-medium labels Dec 20, 2022
@amrita-shrestha
Copy link
Contributor

Discussed share permission in this #4052 (comment).
This issue can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants