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

CLOB POST gives 500 on Fail-If-Exists #976

Open
krowvin opened this issue Dec 12, 2024 · 0 comments
Open

CLOB POST gives 500 on Fail-If-Exists #976

krowvin opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@krowvin
Copy link
Collaborator

krowvin commented Dec 12, 2024

Issue

When writing data to the CLOB endpoint via POST I attempted to test the "fail-if-exists" default functionality and got this error:

{"message":"System Error","incidentIdentifier":"-9047233463565875205","details":{}}

In the logs I see the correct DB error:
ORA-20020: ITEM_ALREADY_EXISTS

Expected

This error to be passed through to the enduser with something like:

{"message":"CLOB Exists"}

With an http status code of 409

Curl used on the request:

curl -X 'POST' \
  'https://t7-tomcat:port/swt-data/clobs' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json;version=2' \
  -d '{
  "office-id": "SWT",
  "id": "myid.txt",
  "description": "my desc",
  "value": "Some Data"
  }'

Version

3.1.5RC15

@krowvin krowvin added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant