When trying to share a note, no user suggestions appear in the share dialog, and creating a share returns a 500 error.
Environment
Nextcloud 33.0.6
PostgreSQL v17
Steps to reproduce
- Open a note.
- Click Share.
- Enter a valid username.
- Click Create Share.
Expected behavior
The user should be suggested in the autocomplete, and the share should be created successfully.
Actual behavior
The request to /apps/prinotes/api/notes/{id}/shares returns HTTP 500.
Error log:
An exception occurred while executing a query: SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column \"share_type\" of relation \"oc_prinotes_shares\" violates not-null constraint\nDETAIL: Failing row contains (5, 1, test_user, null, second_test_user, null, read, 1783881558).",
When trying to share a note, no user suggestions appear in the share dialog, and creating a share returns a 500 error.
Environment
Nextcloud 33.0.6
PostgreSQL v17
Steps to reproduce
Expected behavior
The user should be suggested in the autocomplete, and the share should be created successfully.
Actual behavior
The request to /apps/prinotes/api/notes/{id}/shares returns HTTP 500.
Error log:
An exception occurred while executing a query: SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column \"share_type\" of relation \"oc_prinotes_shares\" violates not-null constraint\nDETAIL: Failing row contains (5, 1, test_user, null, second_test_user, null, read, 1783881558).",