[ 
https://issues.apache.org/jira/browse/UNOMI-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16862056#comment-16862056
 ] 

Michele Riva commented on UNOMI-234:
------------------------------------

I've made some tests and with a small amount of nested objects works perfectly, 
but I can't find a threshold to define how many nested properties I can post.

For instance, this works:
{code:java}
{
  name: {
    first: "John",
    last: "Doe",
    middle: "Mitch"
  },
  contacts: {
    email: "[email protected]"
  }
}{code}
This does not work:
{code:java}
{
  name: {
    first: "John",
    last: "Doe",
    middle: "Mitch"
  },
  contacts: {
    email: "[email protected]"
    phone: "0000000000"
  },
  location: {
     city: "Milan",
     country: "Italy",
     address: "Piazza Duomo",
     zipCode: "20019" 
   }
}
{code}
By the way, thank you so much for your response!

> Nested profile properties doesn't allow a profile to be inserted
> ----------------------------------------------------------------
>
>                 Key: UNOMI-234
>                 URL: https://issues.apache.org/jira/browse/UNOMI-234
>             Project: Apache Unomi
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Michele Riva
>            Priority: Major
>
> I am not able to post the following properties to */cxs/profiles*:
>  
> {code:java}
> {
>  ...
>  "properties": {
>    "contacts": {
>      "phone": "xxxxxxxxxx",
>      "email": "xxxxxxxxxx"
>    },
>    "user": {
>      "name": {
>         "first": "John",
>         "last:" "Doe"
>      }
>    },
>    "location": {
>      "city": "Milan",
>      "country": "Italy",
>      "address": "Piazza Duomo",
>      "zipCode": "20019" 
>    }
>  }
> }{code}
>  
>  
> I get a 204 status code and no content as response (as the status code 
> suggests).
> Posting the same data without nested objects works fine, getting back a 200 
> status code and the object itself.
> Not sure if a bug or a feature request, but it could be really useful to post 
> nested objects as properties.



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

Reply via email to