XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12.0
    • Component/s: Core

      Description

      Since NXP-30680, the property type is enforced on Nuxeo Server.

      We have seen on Nuxeo Server functional tests that the DirectoryEntry class exposes an API to set the entry id with the wrong type.
      See below a stack trace example:

      org.nuxeo.client.spi.NuxeoClientRemoteException: HTTP/400: Wrong type for property: id
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:124)
      	at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:283)
      	at com.fasterxml.jackson.databind.deser.ValueInstantiator.createFromObjectWith(ValueInstantiator.java:229)
      	at com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator.build(PropertyBasedCreator.java:195)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:488)
      	at com.fasterxml.jackson.databind.deser.std.ThrowableDeserializer.deserializeFromObject(ThrowableDeserializer.java:65)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:159)
      	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4014)
      	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3005)
      	at org.nuxeo.client.marshaller.NuxeoConverterFactory.readJSON(NuxeoConverterFactory.java:96)
      	at org.nuxeo.client.NuxeoClient.handleResponse(NuxeoClient.java:315)
      	at org.nuxeo.client.NuxeoClient.fetchResponse(NuxeoClient.java:275)
      	at org.nuxeo.client.objects.AbstractConnectable.fetchResponse(AbstractConnectable.java:65)
      	at org.nuxeo.client.objects.directory.Directory.updateEntry(Directory.java:88)
      

      We should review API & usage in the java client.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: