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

Fix clipboard export of blobs when no filename is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.4.2
    • Fix Version/s: 5.4.2-HF21, 5.5
    • Component/s: None

      Description

      If not filename is set (can happen with old blobs where filename was set on the file schema property, not the filename in the blob), export via clipboard can crash:

      null
      javax.servlet.ServletException: #{cb_action.getLink()}: javax.el.ELException: java.lang.NullPointerException at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at 
      ...
      
      javax.el.ELException: java.lang.NullPointerException at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) ... 61 more Caused by: javax.el.ELException: java.lang.NullPointerException at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:333) at 
      
      ...
      
      Caused by: java.lang.NullPointerException at org.nuxeo.common.utils.StringUtils.toAscii(StringUtils.java:70) at org.nuxeo.ecm.webapp.clipboard.DocumentListZipExporter.escapeEntryPath(DocumentListZipExporter.java:241) at org.nuxeo.ecm.webapp.clipboard.DocumentListZipExporter.addBlobHolderToZip(DocumentListZipExporter.java:208) at org.nuxeo.ecm.webapp.clipboard.DocumentListZipExporter.exportWorklistAsZip(DocumentListZipExporter.java:69) at 
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: