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

shareapi.getShares date Deserializing Error #2405

Closed
toly1994328 opened this issue Aug 19, 2024 · 7 comments · Fixed by #2430
Closed

shareapi.getShares date Deserializing Error #2405

toly1994328 opened this issue Aug 19, 2024 · 7 comments · Fixed by #2430
Assignees
Labels
bug Something isn't working package: nextcloud

Comments

@toly1994328
Copy link

Deserializing to 'ShareapiGetSharesResponseApplicationJson_Ocs' failed due to: Deserializing to 'BuiltList' failed due to: Deserializing to 'Share' failed due to: Tried to construct class "Share" with null for non-nullable field "label".

The lable of data will be null, but in nextcloud SDK check it non-nullable
image

@provokateurin
Copy link
Member

Thanks for reporting, can you share the steps for reproducing this error? What endpoints did you call?

@provokateurin provokateurin added bug Something isn't working package: nextcloud labels Aug 19, 2024
@provokateurin
Copy link
Member

provokateurin commented Aug 19, 2024

I need more information to figure out what is going wrong.
Where is the share coming from?
Can you share the DB row of this share (remove any sensitive values first!)?
As far as I can tell the label should never be null as the fallback is just an empty string, so somewhere it is going wrong.

@provokateurin provokateurin added the needs info Further information is requested label Aug 19, 2024
@provokateurin
Copy link
Member

To be clear: I expect this to be an upstream issue in the code, not in the OpenAPI documentation or this project.

@toly1994328
Copy link
Author

I create share on web (not flutter),and use share api on windows desktop, the label is null

@provokateurin
Copy link
Member

What Nextcloud version are you running and how exactly did you configure the share

@provokateurin provokateurin added this to the Nextcloud 8.0.0 release milestone Aug 23, 2024
@provokateurin
Copy link
Member

Ok I was able to reproduce the problem. When the share is created and returned the label is an empty string as expected, but when querying the shares afterwards then the label is null.

@provokateurin
Copy link
Member

This was actually a bug in the code and not just the API documentation: nextcloud/server#48673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package: nextcloud
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants