[YANGTOOLS-610] Parser error with regex Created: 11/May/16  Updated: 10/Apr/22  Resolved: 20/May/16

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Wojciech Dec Assignee: Igor Foltin
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates YANGTOOLS-587 Parser: XSD regular expressions are i... Resolved
External issue ID: 5875

 Description   

Yangtools Be fails to parse the attached tail-f AAA model.
This is with patch for YANGTOOLS-605 applied.

Caused by: java.lang.IllegalArgumentException: Failed to parse element [password: null] as leaf AbsoluteSchemaPath

{path=[(http://tail-f.com/ns/aaa/1.1?revision=2015-06-16)aaa, (http://tail-f.com/ns/aaa/1.1?revision=2015-06-16)authentication, (http://tail-f.com/ns/aaa/1.1?revision=2015-06-16)users, (http://tail-f.com/ns/aaa/1.1?revision=2015-06-16)user, (http://tail-f.com/ns/aaa/1.1?revision=2015-06-16)password]}

Caused by: java.lang.IllegalArgumentException: String ^$0$.*|$1$[a-zA-Z0-9./]

{1,8}

$[a-zA-Z0-9./]

{22}

|$5$(rounds=\d+$)?[a-zA-Z0-9./]

{1,16}$[a-zA-Z0-9./]{43}|$6$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}

$[a-zA-Z0-9./]

{86}

$ is not valid regular expression. [$1$T5co0bho$6f5XVLunApUppu2fZpOa51]
at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)[64:com.google.guava:18.0.0]
at org.opendaylight.yangtools.yang.data.impl.codec.CompiledPatternContext.validate(CompiledPatternContext.java:31



 Comments   
Comment by Peter Kajsa [ 12/May/16 ]

Most probably duplicate of YANGTOOLS-587.

Generated at Wed Feb 07 20:53:45 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.