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

String comparison bug in PortletPlacementContextImpl causes PortletPlacementException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.2.0
    • Component/s: Ajax
    • Labels:
      None
    • Environment:
      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

              • Assignee:
                firevelocity Vivek Kumar
                Reporter:
                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