Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-797

Method loadParameters() of PortletLink can throw exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 4.0
    • 4.2
    • Framework
    • None
    • JVM 1.5.0_03, Linux, Jetspeed Portal

    Description

      loadParameters() calls setParameter(String, String[]) on a javax.portlet.PortletURL

      In Jetspeed's implementation of that class, if the second argument is an empty array,
      an exception is thrown saying:
      "name and values must not be null or values be an empty array"

      So, line 116 of PortletLink can become:
      if (values != null && values.length>0)

      Now, I don't know if JSR-168 says something about what kind of arguments are allowed for
      the setParameter method, so maybe Jetspeed is also to blame here...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              andyhot Andreas Andreou
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: