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

TCK: Contesting V2RequestTests_PortletRequest_ApiAction_getContextPath1

    XMLWordPrintableJSON

Details

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

    Description

      The TCK test cases

      • V2RequestTests_PortletRequest_ApiAction_getContextPath1
      • V2RequestTests_PortletRequest_ApiEvent_getContextPath1
      • V2RequestTests_PortletRequest_ApiResource_getContextPath1

      test the following requirement:

      Method getContextPath(): Returns a String representing the context path associated with the portlet.

      The test cases does this by the following checking:

      if(getctxtpath!=null && getctxtpath.startsWith("/tck-V2RequestTests")) {
      

      where the expected context path is hard coded.

      However, context path may be controlled by the container, with modification. Liferay uses Equinox Http Servlet as the servlet container in its OSGi environment, where web apps will have osgi.http.endpoint prepended to the beginning of the context path.

      As a result, the context path for tck-V2RequestTests is "/o/tck-V2RequestTests". The TCK fail because the it assumes the container will do nothing to the context path.

      Attachments

        Activity

          People

            msnicklous Scott Nicklous
            dantewang Dante Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: