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

Missing dropbox blob breaks search

    XMLWordPrintable

    Details

      Description

      If an exception is triggered while trying to load a Dropbox blob that does not exist anymore, then nothing is loaded in the folder or search view.

      Step to reproduce:

      • set up dropbox liveconnect
      • create a doc with a file from dropbox
      • delete the file in dropbox
      • restart nuxeo to clear the cache
      • navigate to the folder where the document is
      nuxeo_1  | 11:55:13,344 ERROR [nuxeo-error-log] javax.servlet.ServletException: org.nuxeo.ecm.core.api.PropertyException: Cannot get blob info for: dropbox:nuxeo.demo.dam@gmail.com:/natgeo10.jpg
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:187)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilterInternal(NuxeoAuthenticationFilter.java:604)
      nuxeo_1  |      at org.nuxeo.ecm.platform.ui.web.auth.service.NuxeoAuthFilterChain.doFilter(NuxeoAuthFilterChain.java:51)
      nuxeo_1  |      at org.nuxeo.ecm.platform.ui.web.auth.oauth.NuxeoOAuthFilter.doFilter(NuxeoOAuthFilter.java:122)
      nuxeo_1  |      at org.nuxeo.ecm.platform.ui.web.auth.service.NuxeoAuthFilterChain.doFilter(NuxeoAuthFilterChain.java:49)
      nuxeo_1  |      at org.nuxeo.ecm.platform.oauth2.NuxeoOAuth2Filter.doFilter(NuxeoOAuth2Filter.java:79)
      nuxeo_1  |      at org.nuxeo.ecm.platform.ui.web.auth.service.NuxeoAuthFilterChain.doFilter(NuxeoAuthFilterChain.java:49)
      nuxeo_1  |      at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilter(NuxeoAuthenticationFilter.java:408)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:67)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:75)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:747)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:485)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:410)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:337)
      nuxeo_1  |      at org.nuxeo.ecm.restapi.server.APIServlet.service(APIServlet.java:50)
      nuxeo_1  |      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.elasticsearch.ElasticSearchFilter.doFilter(ElasticSearchFilter.java:55)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoThreadTrackerFilter.doFilter(NuxeoThreadTrackerFilter.java:43)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoStandbyFilter.doFilter(NuxeoStandbyFilter.java:66)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.core.management.jtajca.internal.Log4jWebFilter.doFilter(Log4jWebFilter.java:69)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:120)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:146)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.webdav.service.WIRequestFilter.doFilter(WIRequestFilter.java:61)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:208)
      nuxeo_1  |      at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:274)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoCorsFilter.doFilter(NuxeoCorsFilter.java:49)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:67)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:75)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      nuxeo_1  |      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      nuxeo_1  |      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
      nuxeo_1  |      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
      nuxeo_1  |      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      nuxeo_1  |      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
      nuxeo_1  |      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      nuxeo_1  |      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:436)
      nuxeo_1  |      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)
      nuxeo_1  |      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
      nuxeo_1  |      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
      nuxeo_1  |      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      nuxeo_1  |      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      nuxeo_1  |      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      nuxeo_1  |      at java.lang.Thread.run(Thread.java:748)
      nuxeo_1  | Caused by: org.nuxeo.ecm.core.api.PropertyException: Cannot get blob info for: dropbox:nuxeo.demo.dam@gmail.com:/natgeo10.jpg
      nuxeo_1  |      at org.nuxeo.ecm.core.storage.BaseDocument.getValueBlob(BaseDocument.java:465)
      nuxeo_1  |      at org.nuxeo.ecm.core.storage.BaseDocument.readComplexProperty(BaseDocument.java:647)
      nuxeo_1  |      at org.nuxeo.ecm.core.storage.BaseDocument.readComplexProperty(BaseDocument.java:662)
      nuxeo_1  |      at org.nuxeo.ecm.core.storage.sql.coremodel.SQLDocumentLive.readDocumentPart(SQLDocumentLive.java:172)
      nuxeo_1  |      at org.nuxeo.ecm.core.api.DocumentModelFactory.createDataModel(DocumentModelFactory.java:209)
      nuxeo_1  |      at org.nuxeo.ecm.core.api.AbstractSession.getDataModel(AbstractSession.java:1994)
      nuxeo_1  |      at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.loadDataModel(DocumentModelImpl.java:449)
      nuxeo_1  |      at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getDataModel(DocumentModelImpl.java:459)
      nuxeo_1  |      at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPart(DocumentModelImpl.java:1220)
      nuxeo_1  |      at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1268)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeSchemaProperties(DocumentModelJsonWriter.java:211)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeEntityBody(DocumentModelJsonWriter.java:181)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeEntityBody(DocumentModelJsonWriter.java:107)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter.write(ExtensibleEntityJsonWriter.java:79)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:76)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.DefaultListJsonWriter.write(DefaultListJsonWriter.java:124)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelListJsonWriter.write(DocumentModelListJsonWriter.java:56)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelListJsonWriter.write(DocumentModelListJsonWriter.java:41)
      nuxeo_1  |      at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:76)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.jaxrs.coreiodelegate.PartialCoreIODelegate.writeTo(PartialCoreIODelegate.java:121)
      nuxeo_1  |      at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:302)
      nuxeo_1  |      at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
      nuxeo_1  |      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
      nuxeo_1  |      at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
      nuxeo_1  |      at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
      nuxeo_1  |      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
      nuxeo_1  |      at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.app.jersey.WebEngineServlet.containerService(WebEngineServlet.java:72)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.app.jersey.WebEngineServlet.service(WebEngineServlet.java:56)
      nuxeo_1  |      at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.elasticsearch.ElasticSearchFilter.doFilter(ElasticSearchFilter.java:55)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.jaxrs.session.SessionCleanupFilter.run(SessionCleanupFilter.java:50)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.jaxrs.HttpFilter.doFilter(HttpFilter.java:49)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.app.WebEngineFilter$UnitOfWork.doFilter(WebEngineFilter.java:102)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.app.WebEngineFilter$UnitOfWork.access$100(WebEngineFilter.java:79)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.app.WebEngineFilter.doFilter(WebEngineFilter.java:76)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.jaxrs.context.RequestContextFilter.run(RequestContextFilter.java:48)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.jaxrs.HttpFilter.doFilter(HttpFilter.java:49)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.app.HeaderFixFilter.run(HeaderFixFilter.java:62)
      nuxeo_1  |      at org.nuxeo.ecm.webengine.jaxrs.HttpFilter.doFilter(HttpFilter.java:49)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.core.management.jtajca.internal.Log4jWebFilter.doFilter(Log4jWebFilter.java:69)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      nuxeo_1  |      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      nuxeo_1  |      at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:175)
      nuxeo_1  |      ... 75 more
      nuxeo_1  | Caused by: java.io.IOException: Failed to retrieve Dropbox file metadata
      nuxeo_1  |      at org.nuxeo.ecm.liveconnect.dropbox.DropboxBlobProvider.retrieveFile(DropboxBlobProvider.java:185)
      nuxeo_1  |      at org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider.getFile(AbstractLiveConnectBlobProvider.java:263)
      nuxeo_1  |      at org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider.toBlob(AbstractLiveConnectBlobProvider.java:206)
      nuxeo_1  |      at org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider.readBlob(AbstractLiveConnectBlobProvider.java:99)
      nuxeo_1  |      at org.nuxeo.ecm.core.blob.DocumentBlobManagerComponent.readBlob(DocumentBlobManagerComponent.java:132)
      nuxeo_1  |      at org.nuxeo.ecm.core.storage.BaseDocument.getValueBlob(BaseDocument.java:463)
      nuxeo_1  |      ... 133 more
      nuxeo_1  | Caused by: com.dropbox.core.v2.files.DownloadErrorException: Exception in 2/files/download: {".tag":"path","path":"not_found"}
      nuxeo_1  |      at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:550)
      nuxeo_1  |      at com.dropbox.core.v2.files.DbxUserFilesRequests.download(DbxUserFilesRequests.java:569)
      nuxeo_1  |      at org.nuxeo.ecm.liveconnect.dropbox.DropboxBlobProvider.retrieveFile(DropboxBlobProvider.java:177)
      nuxeo_1  |      ... 138 more
      nuxeo_1  |
      nuxeo_1  | 11:55:13,363 ERROR [nuxeo-error-log]
      nuxeo_1  | Request Attributes:
      nuxeo_1  |
      nuxeo_1  | javax.servlet.forward.request_uri : /nuxeo/api/v1/search/pp/advanced_document_content/execute
      nuxeo_1  | javax.servlet.forward.context_path : /nuxeo
      nuxeo_1  | javax.servlet.forward.servlet_path : /api
      nuxeo_1  | javax.servlet.forward.path_info : /v1/search/pp/advanced_document_content/execute
      nuxeo_1  | javax.servlet.forward.query_string : currentPageIndex=0&pageSize=40&sortBy=&sortOrder=&ecm_parentId=b571c885-5965-4749-b2fb-40f3c450f2e7
      nuxeo_1  | NuxeoExceptionHandlerMarker : true
      nuxeo_1  | messageBundle : java.util.PropertyResourceBundle@5fe7d650
      nuxeo_1  | nuxeo.disable.redirect.wrapper : true
      nuxeo_1  | user_message : An unexpected error occurred. Click on the following links to get more information or go back to the application.
      nuxeo_1  | _STORED_GENERATED_RENDERING_CONTEXT : org.nuxeo.ecm.core.io.registry.context.RenderingContextImpl@422efaf6
      nuxeo_1  | exception_message : Exception in 2/files/download: {".tag":"path","path":"not_found"}
      nuxeo_1  | securityError : false
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: