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

Share type unknown Error when creating the share #1292

Open
yemkareems opened this issue Feb 13, 2025 · 0 comments
Open

Share type unknown Error when creating the share #1292

yemkareems opened this issue Feb 13, 2025 · 0 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@yemkareems
Copy link

While adding a external email and add as guest and create a share

POST request ocs/v2.php/apps/files_sharing/api/v1/shares

POST DATA is

{
"path": "/Test",
"permissions": 31,
"expireDate": "",
"attributes": "[]"
}

and RESPONSE is

{
"ocs": {
"meta": {
"status": "failure",
"statuscode": 400,
"message": "Unbekannter Freigabetyp"
},
"data": []
}
}

Here shareType is missing in the request

I am able to reproduce the error

i am on NC 28.0.7.4 and guests 3.0.2

I enter a email [email protected] and do Invite guest

Image

Then i do invite user and create share

Image

And last step when i click on save share

Image

Image

I get a 400 response

{
"ocs": {
"meta": {
"status": "failure",
"statuscode": 400,
"message": "Unknown share type"
},
"data": []
}
}

@yemkareems yemkareems added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant