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

FreeMarker variables: ignored 'nuxeo.s3storage.directdownload' conflicting with 'nuxeo.s3storage.directdownload.[expire]'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.10-HF18
    • Fix Version/s: QualifiedToSchedule
    • Component/s: S3

      Description

      • Install Amazon S3 Online Storage
      • Add these lines to your nuxeo.conf
        nuxeo.s3storage.bucket=<MY-BUCKET-NAME>
        nuxeo.s3storage.awsid=<MY-AWS-ID>
        nuxeo.s3storage.awssecret=<MY-AWS-SECRET>
        nuxeo.s3storage.directdownload=true
        #nuxeo.s3storage.directdownload.expire=3600
        
      • Restart your server

      During the reboot of your server you will see this warning:

      FreeMarker variables: ignored 'nuxeo.s3storage.directdownload' conflicting with 'nuxeo.s3storage.directdownload.[expire]'

      See the full reboot messages:

      $ ./nuxeoctl restart
      Detected Tomcat server.
      Nuxeo home:          /Users/joaquin/nuxeos/nuxeo-server-9.10-tomcat-mgt-support-4aba-presales
      Nuxeo configuration: /Users/joaquin/nuxeos/nuxeo-server-9.10-tomcat-mgt-support-4aba-presales/bin/nuxeo.conf
      Include template: /Users/joaquin/nuxeos/nuxeo-server-9.10-tomcat-mgt-support-4aba-presales/templates/common-base
      Include template: /Users/joaquin/nuxeos/nuxeo-server-9.10-tomcat-mgt-support-4aba-presales/templates/common
      Include template: /Users/joaquin/nuxeos/nuxeo-server-9.10-tomcat-mgt-support-4aba-presales/templates/default
      Include template: /Users/joaquin/nuxeos/nuxeo-server-9.10-tomcat-mgt-support-4aba-presales/templates/drive
      Include template: /Users/joaquin/nuxeos/nuxeo-server-9.10-tomcat-mgt-support-4aba-presales/templates/s3binaries
      
      Stopping server.....Server stopped.
      Configuration files generation (nuxeo.force.generation=true)...
      FreeMarker variables: ignored 'nuxeo.s3storage.directdownload' conflicting with 'nuxeo.s3storage.directdownload.[expire]'
      Configuration files generated.
      Server started with process ID 89445.
      ...........................
      ======================================================================
      = Component Loading Status: Pending: 0 / Missing: 0 / Unstarted: 0 / Total: 815
      ======================================================================
      Started in 0min54s
      
      

      According to the Amazon S3 Online Storage add-on documentation:

      You can configure downloads to be directly served to the user from S3 without going through Nuxeo. To do so, use:

      nuxeo.s3storage.directdownload=true
      nuxeo.s3storage.directdownload.expire=3600
      

      The expire time is expressed in seconds (the default is one hour) and determines how long the generated S3 URLs are valid. Having short-lived URLs is better for security, but too short an expiration time could be problematic if your server clock is not exactly in sync with the absolute official time use by S3.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tdelanous Thomas Delanous
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.