Skip to content

fix: reject unresolved POST and PUT references - #876

Open
henriquejsza wants to merge 1 commit into
Tencent:masterfrom
henriquejsza:fix/275-unresolved-write-references
Open

fix: reject unresolved POST and PUT references#876
henriquejsza wants to merge 1 commit into
Tencent:masterfrom
henriquejsza:fix/275-unresolved-write-references

Conversation

@henriquejsza

Copy link
Copy Markdown
Contributor

Summary

  • reject unresolved string references in effective POST/PUT objects with UnsupportedOperationException
  • keep existing GET, DELETE, and resolved-reference behavior
  • add DB-free regression coverage, including CRUD@post dispatch

This prevents an out-of-order write reference from silently skipping the write while the parser returns success.

Validation

  • mvn -Dtest=AbstractObjectParserReferenceTest test — 8 passed
  • mvn clean verify — 36 passed

The core APIJSONORM path was tested; the APIJSON-Demo /register endpoint was not retested.

Fixes #275

Fail fast when a string reference cannot be resolved for an effective POST or PUT object. This prevents write requests from silently invalidating or skipping the object and returning a successful response.

Add DB-free regression coverage for table and non-table references, CRUD method directives, preserved GET and DELETE behavior, and resolved references.

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

Labels

None yet

1 participant