[
https://issues.apache.org/jira/browse/USERGRID-82?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14105050#comment-14105050
]
ASF GitHub Bot commented on USERGRID-82:
----------------------------------------
Github user GERey commented on the pull request:
https://github.com/apache/incubator-usergrid/pull/46#issuecomment-52879209
Hi @stliu , this currently PR currently fails
ServiceInvocationIT.testServices under the following error
java.lang.IllegalArgumentException: Cannot modify immutable property[foo]
of entity user
at
org.apache.usergrid.services.AbstractService.assertNoImmutableProperty(AbstractService.java:476)
at
org.apache.usergrid.services.AbstractService.updateEntity(AbstractService.java:458)
at
org.apache.usergrid.services.AbstractService.updateEntity(AbstractService.java:440)
at
org.apache.usergrid.services.AbstractCollectionService.putItemById(AbstractCollectionService.java:276)
at
org.apache.usergrid.services.AbstractService.invokeItemWithId(AbstractService.java:664)
at
org.apache.usergrid.services.AbstractService.invoke(AbstractService.java:641)
at
org.apache.usergrid.services.AbstractService.invoke(AbstractService.java:554)
at
org.apache.usergrid.services.ServiceRequest.execute(ServiceRequest.java:226)
at
org.apache.usergrid.services.ServiceRequest.execute(ServiceRequest.java:193)
at
org.apache.usergrid.ServiceApplication.invokeService(ServiceApplication.java:97)
at
org.apache.usergrid.ServiceApplication.testRequest(ServiceApplication.java:79)
at
org.apache.usergrid.ServiceApplication.testRequest(ServiceApplication.java:73)
at
org.apache.usergrid.services.ServiceInvocationIT.testServices(ServiceInvocationIT.java:58)
Could you take a look at it?
> Cannot change custom entity name
> --------------------------------
>
> Key: USERGRID-82
> URL: https://issues.apache.org/jira/browse/USERGRID-82
> Project: Usergrid
> Issue Type: Bug
> Components: Stack
> Reporter: Scott Ganyo
> Assignee: Strong Liu
> Fix For: 1.1
>
>
> If you have a custom entity and attempt to update the entity's name (via
> PUT), the system will accept the request and return success (200), but the
> name will remain unchanged.
> eg. using ugc:
> ugc create foo "name: 'bar'"
> ugc update foo/bar "name: 'baz'"
> (Note: Referencing the entity in the PUT via UUID has the same effect.)
--
This message was sent by Atlassian JIRA
(v6.2#6252)