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

Serge Huber resolved UNOMI-151.
-------------------------------
    Resolution: Fixed

> Some buggy HTTP request to Unomi are returned an HTTP code 200 with an empty 
> body
> ---------------------------------------------------------------------------------
>
>                 Key: UNOMI-151
>                 URL: https://issues.apache.org/jira/browse/UNOMI-151
>             Project: Apache Unomi
>          Issue Type: Bug
>    Affects Versions: 1.2.0-incubating
>            Reporter: Dinesh Salhotra Dass
>            Priority: Minor
>             Fix For: 1.3.0-incubating, 1.2.0-incubating
>
>
> Sending a context request to Apache Unomi with some unrecognised properties 
> will generate a weird behavior: while we are generating a stacktrace in the 
> logs (good) the HTTP response produced by Apache Unomi has a code 200 (no 
> error management possible client side) and the body is empty.
> Example of stacktrace: (the JSON object I sent is part of the below error 
> message)
> 2017-09-21 09:48:33,495 | ERROR | tp416499354-1800 | ContextServlet | 214 - 
> org.apache.unomi.wab - 1.1.3.jahia | Cannot read payload 
> \{"source":{"itemType":"page","scope":"digitall","itemId":"581de557-04e5-42c6-87da-a0e0be7aba02"},"events":[\{"eventType":"clickedAwesomeButton","scope":"digitall","timeStamp":"2017-09-21T09:48:16+0200"}],"requiredProfileProperties":["magicButtonClickNb"],"requiresSegments":true}
> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: 
> Unrecognized field "requiresSegments" (class 
> org.apache.unomi.api.ContextRequest), not marked as ignorable (8 known 
> properties: "requireSegments", "events", "requiredSessionProperties", 
> "source", "requiredProfileProperties", "profileOverrides", "filters", 
> "sessionPropertiesOverrides"])
>  at [Source: 
> \{"source":{"itemType":"page","scope":"digitall","itemId":"581de557-04e5-42c6-87da-a0e0be7aba02"},"events":[\{"eventType":"clickedAwesomeButton","scope":"digitall","timeStamp":"2017-09-21T09:48:16+0200"}],"requiredProfileProperties":["magicButtonClickNb"],"requiresSegments":true};
>  line: 1, column: 278] (through reference chain: 
> org.apache.unomi.api.ContextRequest["requiresSegments"])
>  at 
> com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:51)
>  at 
> com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:839)[196:com.fasterxml.jackson.core.jackson-databind:2.6.6]
>  at 
> com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:1045)[196:com.fasterxml.jackson.core.jackson-databind:2.6.6]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to