Details

      Description

      Test result:

      The test case V2EnvironmentTests_CacheControl_ApiResource_setETag3 fails because of a selenium error.

      At the same time, this selenium error will lead to 4 other failures. The test cases are as follows:

      V2EnvironmentTests_CacheControl_ApiResource_setUseCachedContent1
      V2EnvironmentTests_CacheControl_ApiResource_setUseCachedContent2
      V2EnvironmentTests_CacheControl_ApiResource_useCachedContent1
      V2EnvironmentTests_CacheControl_ApiResource_useCachedContent2

      Background:

      According to the JavaDoc of CacheControl.setETag method:

      • Sets an ETag for the current response that is
      • used as validation tag. If an ETag was already
      • set it is replaced with the new value.
      • <p>
      • This call is equivalent to calling
      • <code>setProperty(ETAG, token)</code>.
      • <p>
      • Setting the ETag to <code>null</code> removes
      • the currently set ETag.

      In Liferay, during the setETag call, when creating a instance of Header(com.liferay.portal.kernel.servlet.Header), the argument can't be null. The IllegalArgumentException will be throw If the argument is null. 

        Attachments

          Activity

            People

            • Assignee:
              brian.chan Brian Chan
              Reporter:
              leon.chi Leon Chi
              Recent user:
              Csaba Turcsan
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 49 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP35
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                Master