Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29110

Cannot download any blob from a blob list in a multivalued complex

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 10.10
    • Fix Version/s: None
    • Component/s: Seam / JSF UI
    • Backlog priority:
      750
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #12
    • Story Points:
      8

      Description

      • In Studio, add JSF dependency
      • Create a document type MyDoc with schema mydoc made of
        • a multivalued Complex made of
          • a String
          • a multivalued blob "files"
      • Create the JSF Create/Edit/View views for MyDoc
      • Deploy the project
      • Create a MyDoc document with at least 1 complex with 1 blob
      • Attempt to download the blob from the Summary view => ERROR and in server.log, you get:
        Caused by: javax.servlet.ServletException: class java.util.HashMap cannot be cast to class org.nuxeo.ecm.core.api.Blob (java.util.HashMap is in module java.base of loader 'bootstrap'; org.nuxeo.ecm.core.api.Blob is in unnamed module of loader org.nuxeo.runtime.tomcat.NuxeoWebappClassLoader @27a2a089)
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
        [...]
        Caused by: java.lang.ClassCastException: class java.util.HashMap cannot be cast to class org.nuxeo.ecm.core.api.Blob (java.util.HashMap is in module java.base of loader 'bootstrap'; org.nuxeo.ecm.core.api.Blob is in unnamed module of loader org.nuxeo.runtime.tomcat.NuxeoWebappClassLoader @27a2a089)
                at org.nuxeo.ecm.platform.ui.web.binding.DownloadMethodExpression.getBlob(DownloadMethodExpression.java:134)
        

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h