Skip to content

Unable To Update Resources For Non-Default Communities #839

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

Closed
chuang-CE opened this issue Jun 10, 2025 · 1 comment
Closed

Unable To Update Resources For Non-Default Communities #839

chuang-CE opened this issue Jun 10, 2025 · 1 comment
Assignees

Comments

@chuang-CE
Copy link
Collaborator

When using the POST /{community_name}/resources/organizations/{organization_id}/documents] to publish a resource with a CTID that has already been published, an error is returned:
"errors": [ "PG::UniqueViolation: ERROR: duplicate key value violates unique constraint \"index_envelopes_on_envelope_community_id_and_envelope_ceterms_c\"\nDETAIL: Key (envelope_community_id, lower(envelope_ceterms_ctid::text))=(2, ce-testupdate) already exists.\n" ]

The expected result is for the endpoint to update the existing resource with the same CTID.

@excelsior
Copy link
Collaborator

@chuang-CE The fix is available in the CLLC repo.

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

No branches or pull requests

3 participants