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

TCK: Contesting V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo1

    XMLWordPrintableJSON

Details

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

    Description

      The Javadoc for PortalContext.getPortalInfo() states:

      Returns information about the portal like vendor, version, etc.
      The form of the returned string is servername/versionnumber. For example, the reference implementation Pluto may return the string Pluto/1.0.
      The portlet container may return other optional information after the primary string in parentheses, for example, Pluto/1.0 (JDK 1.3.1; Windows NT 4.0 x86).

      The Portlet 2.0 TCK simply tested for a non-null return value. But V2EnvironmentTests_PortalContext_ApiRender_getPortalInfo1 in the Portlet 3.0 TCK mandates that spaces are not permitted.

      This test fails on Liferay Portal because the return value is "Liferay Community Edition Portal / 7.1.0"

      Since the Portlet 2.0 TCK did not test for spaces and there is no explicit requirement stated in the Javadoc that spaces are not allowed in the return value, the recommendation would be to modify the test to permit spaces.

      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: