[ 
https://issues.apache.org/jira/browse/UNOMI-952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Serge Huber updated UNOMI-952:
------------------------------
    Description: 
_PM:_ Fix the public API so invalid client requests get a clear, actionable 
rejection instead of looking like a server outage—addresses open customer 
reports and completes the earlier error-handling improvement (UNOMI-928).

Follow-up to UNOMI-928 (#771): exception mappers are merged, but malformed 
{{{}Item{}}}-shaped JSON still triggers {{ClassCastException}} in 
{{ItemDeserializer}} → HTTP 500 instead of 400.

Scope
 * Harden {{persistence-spi/.../ItemDeserializer.java}} for non-object JSON 
nodes
 * Update {{ContextRequestDeserializer}} / event-collector deserializers if 
needed
 * Unit tests in {{{}rest/{}}}; link PR to UNOMI-933/934/935/945

Acceptance criteria
 * Malformed {{{}source{}}}/{{{}target{}}} Item fields return 400 with 
structured JSON error body
 * {{mvn -pl rest,persistence-spi -am test}} green

  was:
Follow-up to UNOMI-928 (#771): exception mappers are merged, but malformed 
{{{}Item{}}}-shaped JSON still triggers {{ClassCastException}} in 
{{ItemDeserializer}} → HTTP 500 instead of 400.

Scope
 * Harden {{persistence-spi/.../ItemDeserializer.java}} for non-object JSON 
nodes
 * Update {{ContextRequestDeserializer}} / event-collector deserializers if 
needed
 * Unit tests in {{{}rest/{}}}; link PR to UNOMI-933/934/935/945

Acceptance criteria
 * Malformed {{{}source{}}}/{{{}target{}}} Item fields return 400 with 
structured JSON error body
 * {{mvn -pl rest,persistence-spi -am test}} green


> Harden REST Item deserializers to return HTTP 400 for malformed payloads
> ------------------------------------------------------------------------
>
>                 Key: UNOMI-952
>                 URL: https://issues.apache.org/jira/browse/UNOMI-952
>             Project: Apache Unomi
>          Issue Type: Sub-task
>          Components: unomi(-core)
>    Affects Versions: unomi-3.1.0
>            Reporter: Serge Huber
>            Priority: Major
>             Fix For: unomi-3.1.0
>
>
> _PM:_ Fix the public API so invalid client requests get a clear, actionable 
> rejection instead of looking like a server outage—addresses open customer 
> reports and completes the earlier error-handling improvement (UNOMI-928).
> Follow-up to UNOMI-928 (#771): exception mappers are merged, but malformed 
> {{{}Item{}}}-shaped JSON still triggers {{ClassCastException}} in 
> {{ItemDeserializer}} → HTTP 500 instead of 400.
> Scope
>  * Harden {{persistence-spi/.../ItemDeserializer.java}} for non-object JSON 
> nodes
>  * Update {{ContextRequestDeserializer}} / event-collector deserializers if 
> needed
>  * Unit tests in {{{}rest/{}}}; link PR to UNOMI-933/934/935/945
> Acceptance criteria
>  * Malformed {{{}source{}}}/{{{}target{}}} Item fields return 400 with 
> structured JSON error body
>  * {{mvn -pl rest,persistence-spi -am test}} green



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to