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

TCK: Contesting V2ADDLENVIRONMENTTESTS_SPEC2_10_CONTEXT_GETREALPATH

    XMLWordPrintableJSON

Details

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

    Description

      1) The Javadoc shows that the PortletContext.getRealPath() method is allowed to return null.
      PortletContext.getRealPath() states, "Returns: a String
      specifying the real path, or null if the transformation
      cannot be performed."

      2) test V2ADDLENVIRONMENTTESTS_SPEC2_10_CONTEXT_GETREALPATH in the tck
      does not allow for the values to be null, and the test assumes that
      the getRealPath method will always return a non-null String.

      3) test V2ADDLENVIRONMENTTESTS_SPEC2_10_CONTEXT_GETREALPATH in the tck
      needs to account for all possible options in the Javadoc, which includes the possiblility of returning null when calling PortletContext.getRealPath().

      Will send a PR in the comments with suggested fix for the tck test.

      Attachments

        Activity

          People

            msnicklous Scott Nicklous
            vsingleton Vernon Singleton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: