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

Google drive document update is not updating nuxeo document

    XMLWordPrintable

    Details

      Description

      Steps to reproduce :

      • As an administrator, add live-connect add-on and configure it
      • As a non administrator user, add a docx file on a allowed folder
      • On google drive, update the document (through web or sync)
        Result : the file is never updated
        Expected : File is updated, content indexed and audit logs shows the update (after few minutes)

      Server logs :

      2018-07-10 23:32:35,320 ERROR [Nuxeo-Work-blobProviderDocumentUpdate-1:googledrive:default:0] [org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider] Could not update document=LiveConnectFileInfo{user=yachour@nuxeo.com, fileId=1wlNFHXQdem-RhVP7htOcAjxehlXE6wsj}
      java.net.UnknownHostException: accounts.google.com
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:589)
      	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
      	at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
      	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
      	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1156)
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1334)
      	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1309)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:259)
      	at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)
      	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965)
      	at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283)
      	at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)
      	at com.google.api.client.auth.oauth2.Credential.executeRefreshToken(Credential.java:570)
      	at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)
      	at org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider.retrieveAndRefreshCredential(AbstractLiveConnectBlobProvider.java:319)
      	at org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider.lambda$getCredential$0(AbstractLiveConnectBlobProvider.java:297)
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:589)
      	at org.nuxeo.runtime.transaction.TransactionHelper.runInNewTransaction(TransactionHelper.java:555)
      	at org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider.getCredential(AbstractLiveConnectBlobProvider.java:297)
      	at org.nuxeo.ecm.liveconnect.google.drive.GoogleDriveBlobProvider.getService(GoogleDriveBlobProvider.java:499)
      	at org.nuxeo.ecm.liveconnect.google.drive.GoogleDriveBlobProvider.getDriveFile(GoogleDriveBlobProvider.java:540)
      	at org.nuxeo.ecm.liveconnect.google.drive.GoogleDriveBlobProvider.retrieveFile(GoogleDriveBlobProvider.java:520)
      	at org.nuxeo.ecm.liveconnect.core.AbstractLiveConnectBlobProvider.checkChangesAndUpdateBlob(AbstractLiveConnectBlobProvider.java:135)
      	at org.nuxeo.ecm.liveconnect.update.worker.BlobProviderDocumentsUpdateWork.work(BlobProviderDocumentsUpdateWork.java:72)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:436)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:356)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: