You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Navaneet Kumar (JIRA)" <xe...@xml.apache.org> on 2009/01/12 19:24:00 UTC

[jira] Created: (XERCESJ-1357) pattern causes the parser to hang

pattern causes the parser to hang
---------------------------------

                 Key: XERCESJ-1357
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1357
             Project: Xerces2-J
          Issue Type: Bug
          Components: SAX
    Affects Versions: 2.9.1
         Environment: Windows XP
            Reporter: Navaneet Kumar
            Priority: Critical


I have a pattern in my Schema:
 <xsd:simpleType name="ElsterString">
   <xsd:annotation>
     <xsd:documentation> Alphanumeric and ".", "-", "_".
     </xsd:documentation>
   </xsd:annotation>
   <xsd:restriction base="xsd:string">
       <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
   </xsd:restriction>
 </xsd:simpleType>

Th pattern is trying to force this rule:
  no characters other than letters and numbers and -, . and _. And no white spaces at the end. White space is allowed in the middle.

When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
I was validating this string:

Name="aPipeTest_LANPerformance  sksksk sksksk sksksk  "

This string caused the parser to hang. I can use longer strings and get the parser to hang at will.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1357) pattern causes the parser to hang

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich updated XERCESJ-1357:
------------------------------------------

    Component/s:     (was: SAX)
                 XML Schema 1.0 Datatypes

> pattern causes the parser to hang
> ---------------------------------
>
>                 Key: XERCESJ-1357
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1357
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes
>    Affects Versions: 2.9.1
>         Environment: Windows XP
>            Reporter: Navaneet Kumar
>            Priority: Critical
>
> I have a pattern in my Schema:
>  <xsd:simpleType name="ElsterString">
>    <xsd:annotation>
>      <xsd:documentation> Alphanumeric and ".", "-", "_".
>      </xsd:documentation>
>    </xsd:annotation>
>    <xsd:restriction base="xsd:string">
>        <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
>    </xsd:restriction>
>  </xsd:simpleType>
> Th pattern is trying to force this rule:
>   no characters other than letters and numbers and -, . and _. And no white spaces at the ends. White space is allowed in the middle.
> When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
> I was validating this string  (it has a space in the end which is not allowed by the pattern)
> Name="aPipeTest_LANPerformance  sksksk sksksk sksksk  "
> This string caused the parser to hang. I can use longer strings and get the parser to hang at will.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Resolved: (XERCESJ-1357) pattern causes the parser to hang

Posted by "Khaled Noaman (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Khaled Noaman resolved XERCESJ-1357.
------------------------------------

    Fix Version/s: 2.10.0
       Resolution: Fixed

I have checked in a fix for the problem

> pattern causes the parser to hang
> ---------------------------------
>
>                 Key: XERCESJ-1357
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1357
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes
>    Affects Versions: 2.9.1
>         Environment: Windows XP
>            Reporter: Navaneet Kumar
>            Assignee: Khaled Noaman
>            Priority: Critical
>             Fix For: 2.10.0
>
>
> I have a pattern in my Schema:
>  <xsd:simpleType name="ElsterString">
>    <xsd:annotation>
>      <xsd:documentation> Alphanumeric and ".", "-", "_".
>      </xsd:documentation>
>    </xsd:annotation>
>    <xsd:restriction base="xsd:string">
>        <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
>    </xsd:restriction>
>  </xsd:simpleType>
> Th pattern is trying to force this rule:
>   no characters other than letters and numbers and -, . and _. And no white spaces at the ends. White space is allowed in the middle.
> When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
> I was validating this string  (it has a space in the end which is not allowed by the pattern)
> Name="aPipeTest_LANPerformance  sksksk sksksk sksksk  "
> This string caused the parser to hang. I can use longer strings and get the parser to hang at will.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Assigned: (XERCESJ-1357) pattern causes the parser to hang

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Glavassevich reassigned XERCESJ-1357:
---------------------------------------------

    Assignee: Khaled Noaman

> pattern causes the parser to hang
> ---------------------------------
>
>                 Key: XERCESJ-1357
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1357
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: XML Schema 1.0 Datatypes
>    Affects Versions: 2.9.1
>         Environment: Windows XP
>            Reporter: Navaneet Kumar
>            Assignee: Khaled Noaman
>            Priority: Critical
>
> I have a pattern in my Schema:
>  <xsd:simpleType name="ElsterString">
>    <xsd:annotation>
>      <xsd:documentation> Alphanumeric and ".", "-", "_".
>      </xsd:documentation>
>    </xsd:annotation>
>    <xsd:restriction base="xsd:string">
>        <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
>    </xsd:restriction>
>  </xsd:simpleType>
> Th pattern is trying to force this rule:
>   no characters other than letters and numbers and -, . and _. And no white spaces at the ends. White space is allowed in the middle.
> When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
> I was validating this string  (it has a space in the end which is not allowed by the pattern)
> Name="aPipeTest_LANPerformance  sksksk sksksk sksksk  "
> This string caused the parser to hang. I can use longer strings and get the parser to hang at will.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1357) pattern causes the parser to hang

Posted by "Navaneet Kumar (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navaneet Kumar updated XERCESJ-1357:
------------------------------------

    Description: 
I have a pattern in my Schema:
 <xsd:simpleType name="ElsterString">
   <xsd:annotation>
     <xsd:documentation> Alphanumeric and ".", "-", "_".
     </xsd:documentation>
   </xsd:annotation>
   <xsd:restriction base="xsd:string">
       <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
   </xsd:restriction>
 </xsd:simpleType>

Th pattern is trying to force this rule:
  no characters other than letters and numbers and -, . and _. And no white spaces at the ends. White space is allowed in the middle.

When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
I was validating this string  (it has a space in the end which is not allowed by the pattern)

Name="aPipeTest_LANPerformance  sksksk sksksk sksksk  "

This string caused the parser to hang. I can use longer strings and get the parser to hang at will.

  was:
I have a pattern in my Schema:
 <xsd:simpleType name="ElsterString">
   <xsd:annotation>
     <xsd:documentation> Alphanumeric and ".", "-", "_".
     </xsd:documentation>
   </xsd:annotation>
   <xsd:restriction base="xsd:string">
       <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
   </xsd:restriction>
 </xsd:simpleType>

Th pattern is trying to force this rule:
  no characters other than letters and numbers and -, . and _. And no white spaces at the end. White space is allowed in the middle.

When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
I was validating this string:

Name="aPipeTest_LANPerformance  sksksk sksksk sksksk  "

This string caused the parser to hang. I can use longer strings and get the parser to hang at will.


> pattern causes the parser to hang
> ---------------------------------
>
>                 Key: XERCESJ-1357
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1357
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: SAX
>    Affects Versions: 2.9.1
>         Environment: Windows XP
>            Reporter: Navaneet Kumar
>            Priority: Critical
>
> I have a pattern in my Schema:
>  <xsd:simpleType name="ElsterString">
>    <xsd:annotation>
>      <xsd:documentation> Alphanumeric and ".", "-", "_".
>      </xsd:documentation>
>    </xsd:annotation>
>    <xsd:restriction base="xsd:string">
>        <xsd:pattern value="(([A-Za-z0-9]|\-|\.|_)+(( )*([A-Za-z0-9]|\-|\.|_)+)*)?"/>
>    </xsd:restriction>
>  </xsd:simpleType>
> Th pattern is trying to force this rule:
>   no characters other than letters and numbers and -, . and _. And no white spaces at the ends. White space is allowed in the middle.
> When I try and parse it against a document, the parser hangs some times. Longer strings appear to cause the hang more frequently.
> I was validating this string  (it has a space in the end which is not allowed by the pattern)
> Name="aPipeTest_LANPerformance  sksksk sksksk sksksk  "
> This string caused the parser to hang. I can use longer strings and get the parser to hang at will.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org