Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-868

String comparison bug in PortletPlacementContextImpl causes PortletPlacementException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.2.0
    • Ajax
    • None
    • Tomcat installed by Jetspeed 2.1.3 Demo Installer running on Fedora Core 4 Linux, browser is Firefox 2.

    Description

      On line 749 of org.apache.jetspeed.layout.impl.PortletPlacementContextImpl the following expression compares two strings using !=

      foundFragment.getId() != fragment.getId()

      and this returns false even though the two ids are the same, and therefore a PortletPlacementException is thrown.

      Attachments

        Issue Links

          Activity

            People

              firevelocity Vivek Kumar
              serkanc Serkan Camurcuoglu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified