Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4284

Wrong pageflow name in case of nested conversation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.2.GA
    • Fix Version/s: 2.2.1.CR3
    • Component/s: None
    • Labels:
      None
    • Estimated Difficulty:
      Low

      Description

      I tried to start nested conversation with new pageflow as follows:
      <s:link value="DoIt" action="/pages/myPage.xhtml">
      <s:conversationPropagation type="nested" pageflow="myPageflowName" />
      </s:link>

      Seam did not find pageflow because it is looking for pageflow named as: d.myPageflowName
      Request parameter was: conversationPropagation=nested.myPageflowName

      It looks like method getPropagationFromRequestParameter(Map parameters) in org.jboss.seam.core.ConversationPropagation contains a bug. Method assumes that string "nested." was "nest."

      Current code:
      else if (value.startsWith("nest"))
      {
      propagationType = PropagationType.NEST;
      if ( value.length()>5 )

      { pageflow = value.substring(5); }

      }

      One way to fix the code:
      else if (value.startsWith("nest"))
      {
      propagationType = PropagationType.NEST;
      if ( value.length()>7 )

      { pageflow = value.substring(7); }

      }

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  manaRH Marek Novotny
                  Reporter:
                  Vsq Vesa Hiltunen
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: