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

When downloading a document through WebServerServlet, view counter is not incremented

    Details

      Description

      To reproduce:

      • Go to Admin > Content > Documents and Media
      • Add a new basic document
      • View the file entry details
      • Assert the file entry asset has a viewCount > 0
      • View the file entry details
      • Click on "Get URL" link and copy the URL.
      • Execute the following command 10 times (where <url> is the URL copied in the previous step):
        curl <url> > /dev/null
      • Assert that the viewCount hasn't been increment by 10 units.

      Not that to view the asset's viewCount you'll have to query the database. For that.

      • After adding the file, take note of its classPK (substitute <title> by the file entry title):
        SELECT * FROM DLFileEntry where title like '%<title>%';
      • To see the view count (substitute <classPK> by the id you got in the previous step):
        SELECT viewCount FROM AssetEntry where classPK = <classPK>;

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              adolfo.perez Adolfo Pérez
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 21 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M1