Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1017

Unable to access to a news after updating its image from FO side

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.1.0
    • 2.1.0
    • None
    • None
    • 4.4 RC2

      How to reproduce

      • Create a catalog news
      • Select a local image for its illustration
      • Save changes

      The news is no more accessible :

      Caused by: org.ametys.plugins.repository.AmetysRepositoryException: An object id must conform to the <protocol>://<protocol-specific-part> syntax: {"id":"c5d83833-199a-4638-b474-fde3de14c92c","filename":"plante.jpg","size":119080,"viewUrl":"/catalog/_plugins/core/upload/file?id=c5d83833-199a-4638-b474-fde3de14c92c","downloadUrl":"/catalog/_plugins/core/upload/file?id=c5d83833-199a-4638-b474-fde3de14c92c&download=true","type":"attribute"}
      	at org.ametys.plugins.repository.AmetysObjectResolver.resolveById(AmetysObjectResolver.java:343)
      	at org.ametys.cms.data.ExplorerFile._getResource(ExplorerFile.java:116)
      	at org.ametys.cms.data.ExplorerFile.getMimeType(ExplorerFile.java:95)
      	at org.ametys.cms.data.type.ResourceElementTypeHelper.singleFileToSAX(ResourceElementTypeHelper.java:246)
      	at org.ametys.cms.data.type.AbstractFileElementType._singleExplorerFileToSAX(AbstractFileElementType.java:339)
      	at org.ametys.cms.data.type.AbstractFileElementType._valueToSAX(AbstractFileElementType.java:296)
      	at org.ametys.core.model.type.AbstractElementType._valueToSAX(AbstractElementType.java:265)
      	at org.ametys.core.model.type.AbstractElementType.valueToSAX(AbstractElementType.java:235)
      	at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper.dataToSAX(DataHolderHelper.java:421)
      	at org.ametys.cms.data.type.impl.CompositeRepositoryModelItemType._valueToSAX(CompositeRepositoryModelItemType.java:75)
      	at org.ametys.cms.data.type.impl.CompositeRepositoryModelItemType.valueToSAX(CompositeRepositoryModelItemType.java:54)
      	at org.ametys.plugins.repository.data.holder.impl.DataHolderHelper.dataToSAX(DataHolderHelper.java:421)
      	at org.ametys.plugins.repository.data.holder.ModelAwareDataHolder.dataToSAX(ModelAwareDataHolder.java:399)
      	at org.ametys.cms.content.ContentSaxer.saxAttributes(ContentSaxer.java:340)
      	at org.ametys.cms.content.ContentSaxer.saxBody(ContentSaxer.java:168)
      

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: