Skip to content

Sharing a note fails with PostgreSQL: share_type is NULL #2

Description

@AmdjedKa

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

  1. Open a note.
  2. Click Share.
  3. Enter a valid username.
  4. 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).",

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions