Uploaded image for project: '[Read Only] - Addon Channel Manager'
  1. [Read Only] - Addon Channel Manager
  2. CHANNELMGR-1349

Can not save document when property.isMultiple mismatches the multiple configuration of the related doctype

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • 5.0.1
    • None

    Description

      Expected: Document is saved

      Actual: Unable to save message.

      Stacktrace in console:

      [INFO] [talledLocalContainer] 15.06.2017 13:58:23 WARN [[StringFieldType.java:161]] Failed to write singular String value to property hippogogreen:categories
      [INFO] [talledLocalContainer] javax.jcr.ValueFormatException: Single-valued property can not be set to an array of values:property /content/documents/河马转到绿/活动/2013/09/新绿色经济sjf峰会/新绿色经济sjf峰会[2]/hippogogreen:categories
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:274) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:780) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl$7.perform(NodeImpl.java:2140) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl$7.perform(NodeImpl.java:2130) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2130) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1880) ~[jackrabbit-core-2.14.0-h1-SNAPSHOT.jar:2.14.0-h1-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.hippoecm.repository.decorating.NodeDecorator.setProperty(NodeDecorator.java:138) ~[hippo-repository-connector-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.documenttype.field.type.StringFieldType.writeTo(StringFieldType.java:155) ~[hippo-addon-channel-manager-content-service-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.documenttype.field.FieldTypeUtils.writeFieldValues(FieldTypeUtils.java:229) ~[hippo-addon-channel-manager-content-service-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.document.DocumentsServiceImpl.updateDraft(DocumentsServiceImpl.java:104) ~[hippo-addon-channel-manager-content-service-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.ContentResource.lambda$updateDraftDocument$1(ContentResource.java:67) ~[hippo-addon-channel-manager-content-service-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.ContentResource.executeTask(ContentResource.java:117) [hippo-addon-channel-manager-content-service-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.ContentResource.executeTask(ContentResource.java:97) [hippo-addon-channel-manager-content-service-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      [INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.ContentResource.updateDraftDocument(ContentResource.java:66) [hippo-addon-channel-manager-content-service-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abanck Arent-Jan Banck (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: