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

Profiler Admin: if two criteria in the same rule have the same name, you can't load the second one to edit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.1.3
    • Fix Version/s: None
    • Component/s: Admin Portlets
    • Labels:
      None
    • Environment:
      Tomcat 5.5 on Linux

      Description

      If you have two criterion named the same thing (eg.there are two occurrences of criterion named "hostname"), then when you
      are in the profiler admin and you click on the criterion to edit it, you can only ever load the first occurrence.

      Here is the Subsite Profiling Rule Definition example given in the online documentation:

      <ProfilingRule id="subsite-by-hostname-live" standardRule="false">
      <description value="A rule based on role fallback algorithm with
      specified subsite and home page"/>
      <Criteria>
      <Criterion name="navigation">
      <type value="navigation"/>
      <value value="subsite-root"/>
      <fallBackOrder value="0"/>
      <fallBackType value="2"/>
      </Criterion>
      <Criterion name="hostname">
      <type value="hostname"/>
      <fallBackOrder value="1"/>
      <fallBackType value="2"/>
      </Criterion>
      <Criterion name="user">
      <type value="user"/>
      <fallBackOrder value="2"/>
      <fallBackType value="2"/>
      </Criterion>
      <Criterion name="navigation-2">
      <type value="navigation"/>
      <value value="subsite-root"/>
      <fallBackOrder value="3"/>
      <fallBackType value="2"/>
      </Criterion>
      <Criterion name="hostname-2">
      <type value="hostname"/>
      <fallBackOrder value="4"/>
      <fallBackType value="2"/>
      </Criterion>
      <Criterion name="role">
      <type value="role"/>
      <fallBackOrder value="5"/>
      <fallBackType value="2"/>
      </Criterion>
      <Criterion name="path">
      <type value="path"/>
      <value value="home"/>
      <fallBackOrder value="6"/>
      <fallBackType value="2"/>
      </Criterion>
      </Criteria>
      </ProfilingRule>

      Clicking on the hostname criterion at position 4 will cause the hostname criterion at position 1 to get loaded.

      One cannot give a unique name to the second "hostname" criterion such as "hostname-2" since if you do, it causes the SiteView to generate paths like __subsite-root/_hostname-2...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aaronmevans Aaron Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

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