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

Standard mode with S3 is broken in nuxeo-retention 2021.2.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: ADDONS_2021
    • Fix Version/s: ADDONS_2021
    • Component/s: Retention
    • Release Notes Summary:
      The s3retention template is no longer automcatically added by the retention marketplace
    • Sprint:
      nxplatform #56
    • Story Points:
      1

      Description

      The s3retention template is installed by default but all the config values are messed up

      from nuxeoctl showconf

      nuxeo.retention.compliance.enabled=false
      nuxeo.retention.core.binarymanager=org.nuxeo.ecm.blob.s3.S3BlobProvider
      nuxeo.retention.core.blobstore.digestAsync=${nuxeo.core.blobstore.digestAsync}
      nuxeo.retention.s3storage.accelerateMode=${nuxeo.s3storage.accelerateMode}
      nuxeo.retention.s3storage.awsid=${nuxeo.s3storage.awsid}
      nuxeo.retention.s3storage.awssecret=${nuxeo.s3storage.awssecret}
      nuxeo.retention.s3storage.awstoken=${nuxeo.s3storage.awstoken}
      nuxeo.retention.s3storage.bucket=
      nuxeo.retention.s3storage.bucket_prefix=
      nuxeo.retention.s3storage.cachecount=${nuxeo.s3storage.cachecount}
      nuxeo.retention.s3storage.cacheminage=${nuxeo.s3storage.cacheminage}
      nuxeo.retention.s3storage.cachesize=${nuxeo.s3storage.cachesize}
      nuxeo.retention.s3storage.connection.max=${nuxeo.s3storage.connection.max}
      nuxeo.retention.s3storage.connection.retry=${nuxeo.s3storage.connection.retry}
      nuxeo.retention.s3storage.connection.timeout=${nuxeo.s3storage.connection.timeout}
      nuxeo.retention.s3storage.endpoint=${nuxeo.s3storage.endpoint}
      nuxeo.retention.s3storage.pathstyleaccess=${nuxeo.s3storage.pathstyleaccess}
      nuxeo.retention.s3storage.region=${nuxeo.s3storage.region}
      nuxeo.retention.s3storage.socket.timeout=${nuxeo.s3storage.socket.timeout}
      

      the resulting s3-retention-config.xml file on the server

      <?xml version="1.0"?>
      <component name="retention-s3" version="1.0.0">
      
        <require>default-repository-config</require>
      
        <extension target="org.nuxeo.ecm.core.blob.BlobManager" point="configuration">
          <blobprovider name="records">
            <class&gt;org.nuxeo.ecm.blob.s3.S3BlobProvider</class&gt;
            <property name="record">true</property>
            <property name="awsid"></property>
            <property name="awssecret"></property>
            <property name="awstoken"></property>
            <property name="bucket"></property>
            <property name="region">ap-northeast-1</property>
            <property name="endpoint"></property>
            <property name="pathstyleaccess">false</property>
            <property name="accelerateMode">false</property>
            <property name="bucket_prefix"></property>
            <!-- min file age, in second, to be removed from cache if the size max size is reached, default is 3600 -->
            <property name="cacheminage">60</property>
            <property name="cachesize">100MB</property>
            <property name="cachecount">10000</property>
            <property name="connection.max">50</property>
            <property name="connection.retry">3</property>
            <property name="connection.timeout">50000</property>
            <property name="socket.timeout">50000</property>
            <property name="digestAsync">false</property>
          </blobprovider>
        </extension>
      
        <extension target="org.nuxeo.ecm.core.blob.DocumentBlobManager" point="configuration">
          <blobdispatcher merge="true">
            <property name="records">records</property>
            <property name="default">default</property>
          </blobdispatcher>
        </extension>
      
      </component>
      

      The install.xml file of the MP includes the s3retention template in the addtemplate attribute while it should be optional and manually added in the environment conf.

      <install>
         <update file="${package.root}/install/bundles" todir="${env.bundles}" />
         <update file="${package.root}/install/lib" todir="${env.lib}" />
         <copy dir="${package.root}/install/templates" todir="${env.templates}" overwrite="true" />
         <config addtemplate="retention,s3retention" />
      </install>
      

      Downgrading to version 2021.1.0 solves the issue.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: