Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1665

get brittlelocalreferenceexception because of error in menuNode.xsd

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.12-core
    • 1.2.13-core
    • Components
    • None
    • Generic

    Description

      The issue is in the XSD - menuNode.xsd. In this XSD, the attribute "id" is registered as unique for the node "itemNode" in the following way..
      16 <xsd:complexType name="menuNodeType">
      17 <xsd:complexContent>
      18 <xsd:extension base="trmenu:baseType">
      19 <xsd:choice minOccurs="0" maxOccurs="unbounded">
      20 <xsd:element ref="trmenu:itemNode"/>
      21 <xsd:element ref="trmenu:groupNode"/>
      22 <xsd:element ref="trmenu:sharedNode"/>
      23 </xsd:choice>
      24 <xsd:attribute name="id" type="xsd:id" use="required"/>
      25 <xsd:attribute name="label" type="trmenu:stringOrElExpression"/>

      Above syntax is wrong and it should be registered as following..

      24 <xsd:attribute name="id" type="xsd:ID" use="required"/>

      (Please note that "id" is defined in the default xml NS "http://www.w3.org/XML/1998/namespace", where as "ID" is defined in the NS "http://www.w3.org/2001/XMLSchema")

      After fixing the above issue, I no more see the BrittleXpath exception with the uploaded workspace using steps given in the bug.

      This issue is in two files:
      org/apache/myfaces/trinidadinternal/menu/xml/schemas/menuNode.xsd
      org/apache/myfaces/trinidadinternal/menu/xml/schemas/sharedNode.xsd

      Attachments

        1. JIRA-1665-1.2.12.2.patch
          2 kB
          Vimal Kumar Gupta

        Activity

          People

            Unassigned Unassigned
            vkg1215 Vimal Kumar Gupta
            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