Maximo Open Forum

 View Only
  • 1.  secure attachments don't open when there is a quote or bracket in the filename (or folder name)

    Posted 01-09-2024 06:43

    Since we updated to Maximo Asset Management 7613 fix 013 we see issues with .jpg files that can no longer be opened.

    Translation of the url seems ok, still we get the following error:

    The server has encountered an unknown error.

    Reload the application and try again. If the problem persists, contact your system administrator.

    When we save the same attachment without brackets or quote in the name like when it was in folder Foto's, it works fine.

    Log file info with system param mxe.doclink.securedAttachment set to true gives this

    [9-1-24 11:41:50:319 CET] 00000146 SystemOut     O ++++ debugSecuredAttachdoc -> val : user=MAXADMIN
    url=http://127.0.0.1/doclinks/attachments/Marcel(broomstick)1704796374145.jpg
    [9-1-24 11:41:50:320 CET] 00000146 SystemOut     O ++++ debugSecuredAttachdoc -> imagePath : http://127.0.0.1/doclinks/attachments/Marcel(broomstick)1704796374145.jpg
    [9-1-24 11:41:50:321 CET] 00000146 SystemOut     O ++++ debugSecuredAttachdoc -> key : \doclinks
    [9-1-24 11:41:50:321 CET] 00000146 SystemOut     O ++++ debugSecuredAttachdoc -> path : \attachments\Marcel(broomstick)1704796374145.jpg
    [9-1-24 11:41:50:321 CET] 00000146 SystemOut     O ++++ debugSecuredAttachdoc -> newfilepath : \doclinks\attachments\Marcel(broomstick)1704796374145.jpg
    [9-1-24 11:41:50:325 CET] 00000146 SystemOut     O ++++ debugSecuredAttachdoc -> fullRoot : D:\DOCLINKS
    [9-1-24 11:41:50:325 CET] 00000146 SystemOut     O ++++ debugSecuredAttachdoc -> pathToCheck : D:\DOCLINKS\attachments\Marcel(broomstick)1704796374145.jpg
    [9-1-24 11:41:50:343 CET] 0000011e SystemOut     O 09 jan 2024 11:41:50:343 [INFO] [MXServer] [CID-CRON-438744][maximo] Correlation started.
    [9-1-24 11:41:50:343 CET] 0000011e SystemOut     O 09 jan 2024 11:41:50:343 [INFO] [MXServer] [CID-CRON-438744][maximo] Correlation started, correlation data added:  TaskName:ESCALATION
    [9-1-24 11:41:50:343 CET] 0000011e SystemOut     O 09 jan 2024 11:41:50:343 [INFO] [MXServer] [CID-CRON-438744][maximo] Correlation started, correlation data added:  InstanceName:ESCAQEPIWO TaskName:ESCALATION
    [9-1-24 11:41:50:343 CET] 0000011e SystemOut     O 09 jan 2024 11:41:50:343 [INFO] [MXServer] [CID-CRON-438744][maximo] Correlation started, correlation data added:  InstanceName:ESCAQEPIWO TaskName:ESCALATION Activity:ACTION
    [9-1-24 11:41:50:326 CET] 00000146 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: An exception was thrown by one of the service methods of the servlet [secureprovider] in application [MAXIMO]. Exception created : [java.lang.NullPointerException
    at psdi.webclient.servlet.RedirectServlet.processFile(RedirectServlet.java:222)
    at psdi.webclient.servlet.RedirectServlet.fetchImage(RedirectServlet.java:161)
    at psdi.webclient.servlet.RedirectServlet.handleRequest(RedirectServlet.java:150)
    at psdi.webclient.servlet.RedirectServlet.doGet(RedirectServlet.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
    at com.ibm.tivoli.maximo.filter.UnSupportedMethodBlockFilter.doFilter(UnSupportedMethodBlockFilter.java:60)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at psdi.webclient.system.filter.HttpXFrameOptionsFilter.doFilter(HttpXFrameOptionsFilter.java:38)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at psdi.webclient.system.filter.MTContextFilter.doFilter(MTContextFilter.java:53)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:979)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1119)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:966)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:816)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
    ]
    [9-1-24 11:41:50:372 CET] 00000146 LocalTranCoor E   WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
    [9-1-24 11:41:50:376 CET] 00000146 webapp        E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[secureprovider]: java.lang.NullPointerException
    at psdi.webclient.servlet.RedirectServlet.processFile(RedirectServlet.java:222)
    at psdi.webclient.servlet.RedirectServlet.fetchImage(RedirectServlet.java:161)
    at psdi.webclient.servlet.RedirectServlet.handleRequest(RedirectServlet.java:150)
    at psdi.webclient.servlet.RedirectServlet.doGet(RedirectServlet.java:80)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
    at com.ibm.tivoli.maximo.filter.UnSupportedMethodBlockFilter.doFilter(UnSupportedMethodBlockFilter.java:60)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at psdi.webclient.system.filter.HttpXFrameOptionsFilter.doFilter(HttpXFrameOptionsFilter.java:38)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at psdi.webclient.system.filter.MTContextFilter.doFilter(MTContextFilter.java:53)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:979)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1119)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:82)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:966)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:816)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)


    #Assets
    #EndUser

    ------------------------------
    Marcel van der Heide
    Strong Dynamic
    ------------------------------



  • 2.  RE: secure attachments don't open when there is a quote or bracket in the filename (or folder name)

    Posted 01-10-2024 09:41

    IBM has acknowledged this in an APAR IJ49555.  It will not be released in 7.6.1.3 but you can request an LAFix for it. 



    ------------------------------
    Lani Trotter
    Starboard Consulting LLC
    ------------------------------



  • 3.  RE: secure attachments don't open when there is a quote or bracket in the filename (or folder name)

    Posted 01-11-2024 09:45

    I looked up the APAR and it was created too recently to get released in a 7.6.1.2 IFIX (since we stopped releasing them in December) but it should be done in a future 7.6.1.3 IFIX. It does not seem like we have a target release date yet for the IFIX but have the record to include the fix in the 7.6.1.3 IFIX stream. 



    ------------------------------
    Steven Shull
    IBM
    ------------------------------



  • 4.  RE: secure attachments don't open when there is a quote or bracket in the filename (or folder name)

    Posted 01-15-2024 03:36

    Hi,

    Can you help me find this specific APAR? 

    A link would help me a lot. Thanks



    ------------------------------
    Marcel van der Heide
    Strong Dynamic
    ------------------------------



  • 5.  RE: secure attachments don't open when there is a quote or bracket in the filename (or folder name)

    Posted 01-15-2024 12:43

    Hi Marcel,

    It seems IBM has not published a page for APAR IJ49555 as yet.  There is a way to subscribe to APARs using your IBM account from the My Notifications page.  You can set those up here:  My Notifications Subscription Service (ibm.com)

     

    Kindest Regards,

    Lani

    Office 407-392-3187 Cell 361-834-9801