Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-14200

Fields cm:title and cm:description get truncated during auditing

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 4.2.N
    • Fix Version/s: 4.2.5
    • Component/s: Auditing
    • Labels:
      None

      Description

      Description:
      If audit is active and if you store more than 1K in a MLText field then it is stored but truncated and there is some data loss.

      How to reproduce?
      Phase 0:
      Install a 4.2.4 version using Oracle 11g
      Phase 1:
      Allow fields “title” and “description” to contain more than 1K in the UI so it is not the limiting factor. To achieve this, you need to configure in <tomcat>/webapps/share/WEB-INF/classes/alfresco/share-form-config.xml
      The configuration is to specify explicitly maximum length for cm:title and cm:description.
      Example:
      <field id="cm:title">
      <control template="/org/alfresco/components/form/controls/textfield.ftl">
      <control-param name="maxLength">5120</control-param>
      </control>
      </field>
      <field id="cm:description">
      <control>
      <control-param name="activateLinks">true</control-param>
      <control-param name="maxLength">65536</control-param>
      </control>
      </field>

      Attached the “share-form-config.xml” configured for you for version 4.2.4.

      Phase 2:
      Activate and configure an audit application. To do so please follow exactly and reuse the configuration files provided in
      https://issues.alfresco.com/jira/browse/MNT-10611

      Phase 3:
      Start again and try to create anew document using share with a “title” having a length equal to 5k.

      Observed result:
      The title is truncated silently.

      Expected result:
      All the 5k should be stored in the DB.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  pdubois Philippe Dubois [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 week, 1 hour, 30 minutes
                    1w 1h 30m

                      Structure Helper Panel