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

Media Gallery browser appends empty description to file's and folder's title and alt tags

    Details

      Description

      While displaying images alternate attribute and preview through Media Gallery portlet, the title should contain a space + dash + space ( - ) only if there is a description for such image, else it should only display the image title with no other characters appended.

      Reproduction steps

      1. start portal
      2. Login as admin and go to Admin > Site Administration > Documents and Media and upload 1 image without a description and another one with description.
      3. Create one folder without description and another with description
      4. Go back to the Welcome page and add a Media Gallery portlet onto it
      5. Leave the mouse on the folders and on the images
        Check that a tooltip appears, the text ends with " - " if description was empty
      6. Click on the image just uploaded
        Check that image title ends with " - " if description was empty
      expected behaviour

      titles and tooltips should not end with " - " if description is empty

      experienced behaviour

      titles and tooltips ends with " - " even if description is empty

      1. Close the preview slideshow
      2. Set the browser not to display images (for example, in Firefox 40.0, type about:config in the address bar and then set permissions.default.image to 2)
      3. Reload the page
      expected behaviour

      displayed alt attributes should not end with " - " if description is empty

      experienced behaviour

      displayed alt attributes ends with " - " even if description is empty

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 44 weeks ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 Alpha 1