cancel
Showing results for 
Search instead for 
Did you mean: 

Google Docs config in 3.4a

jeremy
Champ in-the-making
Champ in-the-making
Hi,

I installed 3.4a Community edition.

The content of the share-config-custom.xml file in tomcat\shared\classes\web-extension does not have any google docs information, like it did in 3.3g.

For example in 3.3g the share-config-custom.xml file had

      <google-docs>
         <!–
            Enable/disable the Google Docs UI integration (Extra types on Create Content menu, Google Docs actions).
            If enabled, remember to also make sure the gd:googleEditable aspect is made visible in the <aspects> section above.
         –>
         <enabled>true</enabled>

         <!–
            The mimetypes of documents Google Docs allows you to create via the Share interface.
            The I18N label is created from the "type" attribute, e.g. google-docs.doc=Google Docs&trade; Document
         –>
         <creatable-types>
            <creatable type="doc">application/msword</creatable>
            <creatable type="xls">application/vnd.ms-excel</creatable>
            <creatable type="ppt">application/vnd.ms-powerpoint</creatable>
         </creatable-types>
      </google-docs>


but the 3.4a share-config-custom.xml file doesn't have this.

The share-config-custom.xml file in 3.4a has the following content:

<alfresco-config>
  
   <!– Repository Library config section –>
   <config evaluator="string-compare" condition="RepositoryLibrary" replace="true">
      <!–
         Whether the link to the Repository Library appears in the header component or not.
      –>
      <visible>true</visible>
   </config>

   <config evaluator="string-compare" condition="Remote">
      <remote>
         <endpoint>
            <id>alfresco-noauth</id>
            <name>Alfresco - unauthenticated access</name>
            <description>Access to Alfresco Repository WebScripts that do not require authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>none</identity>
         </endpoint>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>user</identity>
         </endpoint>

         <endpoint>
            <id>alfresco-feed</id>
            <name>Alfresco Feed</name>
            <description>Alfresco Feed - supports basic HTTP authentication via the EndPointProxyServlet</description>
            <connector-id>http</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <basic-auth>true</basic-auth>
            <identity>user</identity>
         </endpoint>
      </remote>
   </config>

</alfresco-config>

Does the share-config-custom.xml file need to be configured in 3.4a, for googledocs to work in Share ?

Thanks.
14 REPLIES 14

rays
Confirmed Champ
Confirmed Champ
Brian and I have set-up Google Docs properties per the above advice.

It appears that the "fixed bug" reported here in http://issues.alfresco.com/jira/browse/ALF-2831 is again present in Alfresco Community v3.4.0 (b 3262) schema 4111 which is the version included in the distributed installer.

How is that possible? What can I provide by way of evidence other than to say that it is not working in this freshly installed version and documents cannot be checked out to Google Docs?

mikeh
Star Contributor
Star Contributor
Switch on debugging for the module:
log4j.logger.org.alfresco.repo.googledocs=debug

You might find the error is something like "Could not convert document" which seems to be an intermittent Google Docs issue we have no control over. See if check-out works for Excel & PowerPoint and breaks for Word…

Thanks,
Mike

rays
Confirmed Champ
Confirmed Champ
My first test was to create a Google Docs Document using the drop-down menu. Document is created and then I try to check it out to Google Docs. Result is only this single line in alfresco.log

21:26:59,823 DEBUG [org.alfresco.repo.googledocs.GoogleDocsServiceImpl] Trying to initialise google docs service for user ${googledocs.username}

mikeh
Star Contributor
Star Contributor
My first test was to create a Google Docs Document using the drop-down menu. Document is created and then I try to check it out to Google Docs. Result is only this single line in alfresco.log

21:26:59,823 DEBUG [org.alfresco.repo.googledocs.GoogleDocsServiceImpl] Trying to initialise google docs service for user ${googledocs.username}

That looks like you've not configured the  service side:
In Alfresco 3.4a you will find the googleDocs configuration under
tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/googledocs/default/googledocs.properties
Copy the placeholder values to your alfresco-global.proprties (in Tomcat/shared/classes) and populate them with correct values, e.g.
#
# Google Docs
#
googledocs.googleeditable.enabled=true
googledocs.username=my-google-docs-account@gmail.com
googledocs.password=mySuperSecretPassword

Thanks,
Mike

rays
Confirmed Champ
Confirmed Champ
From the debug text, I too thought that there was maybe a problem with the config of the google docs account which I had already set-up in alfresco-global.properties in the way you described above.

Now for the  Smiley Surprisedops: bit of the explanation.

It took me three visits to alfresco-global.properties before I noticed that I had not uncommented the user account and password lines.  Duh!

I now have my first checkout working.

Thanks for your patient support.

(Now I'm going to crawl back into a very deep hole of my own making!)