Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-89689

As a user I want to be able to edit the title and/or file name independently

    Details

      Description

      As a user

      I want to be able to edit the title and/or file name independently and changes to the title not to affect the file name

      so that the visual appearance of the document can be different from the name of the file.

       

      Requirements:

       

      1.- There should be 2 fields, Title and Filename.

      2.- Both fields are editable independently being Title mandatory

      3.- When autocompleting, Title should not include the extension of the filename

      4.- Changing the content of Title must not change the content of Filename

      5.- Filename should have the current restrictions applied to "Name"
      6.- Filename should include the extension and allow for modifying it.

      7.- Download URL should point to the filename and when downloaded, the file is stored with that name.

      8.- In the items views (cards, lists, table, asset publisher, etc) the text shown is the one stored in the "Title" field

       

      Quick renaming must be taken into consideration while implementing this.

      Design
      Figma

       

      Acceptance criteria

      Given a site

      When a user uploads a file to documents and media

      Then she can set the title and file name of the document independently

       

      Given a site

      When a user uploads a file to documents and media

      Then Liferay will automatically fill the "Title" with the name of the file (excluding extension)
      And autocomplete "File name" with the whole filename

       

      Given a site and a document uploaded

      When a user modifies the content of the "Title" field

      Then the "File name" field is not modified

       

      Given a site and a document uploaded

      When a user downloads the document

      Then the "File name" field content is applied to the file downloaded

       

      Test Scenarios

      ID Test Priority Test Scenarios Covered by Backend (Unit/Integration)? Test to add
       1.1 5 The title name and the file name will be added automatically after uploading a file  No CPDocumentsandmedia#ViewDocumentInDifferentViews 
       1.2 5 The title name will be the same as the file name without extension after uploading a file No  CPDocumentsandmedia#ViewDocumentInDifferentViews
       1.3 5 The file name will be the same as the uploaded file name after uploading a file No  CPDocumentsandmedia#ViewDocumentInDifferentViews
       1.4 5 The file name will not be changed after the title name is edited  Yes Cover in existing test:CPDocumentsandmedia#EditDocument  
       1.5 5 The title name will not be changed after the file name is edited  Yes Cover in existing test:CPDocumentsandmedia#EditDocument   
       1.6 5 The content of the file name field will be applied to the downloaded file No Manual
       1.7 5 The document entry cannot be published with an empty filename Yes  Manual 
       1.8 5 The document entry cannot be published with a filename without an extension (this behavior will likely be changed)   No Manual 
       1.9 5 The document title can be displayed correctly in the different views in DM  No CPDocumentsandmedia#ViewDocumentInDifferentViews 
      1.10 3 The document title can be displayed correctly in other portlets No  Manual 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              austin.chiang Austin Chiang
              Reporter:
              marta.elicegui Marta Elicegui
              Engineering Assignee:
              Alicia Garcia
              Recent user:
              Sophia Zhang
              Participants of an Issue:
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  7.4.13 DXP GA1
                  Master