Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-668

TCK: Contesting V3URLTests_BaseURL_append and V3URLTests_BaseURL_append2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.1
    • tck
    • None

    Description

      Both V3URLTests_BaseURL_append and V3URLTests_BaseURL_append2 call baseURL.setParameter("tr1", ">&'\"") followed by baseURL.append(Appendable) in order to verify that the following characters are not present in the Appendable object:

      • >
      • &
      • '
      • "

      The check for the absence of the ampersand character is done like this:

      URLTests_BaseURL.java
      if (!resultingString.contains("&") {
          ...
      }
      

      However, this check assumes that the portlet container will not use the ampersand character in any way. Liferay Portal typically separates URL parameters with an ampersand, which causes the aforementioned tests to fail in Liferay Portal. The reason why this works on Apache Pluto is because it never uses an ampersand to separate URL parameters.

      The proposed solution would be to simply eliminate the check for the presence of an ampersand character.

      Attachments

        Activity

          People

            ngriffin7a Neil Griffin (Inactive)
            ngriffin7a Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: