| Summary: | Can not build a translated book | ||
|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | Matthew Casperson <mcaspers> |
| Component: | REST-API | Assignee: | Lee Newson <lnewson> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.1 | CC: | cbredesen, lnewson |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | 1.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-17 23:49:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Matthew Casperson
2013-09-10 23:56:35 UTC
Reassigning to the REST-API as the error indicates that this is a problem with the server.
The error on the server looks to be from this:
java.util.regex.PatternSyntaxException: Illegal character range near index 23
^[a-zA-Z]+[a-zA-Z0-9_-\\.]*$
^
at java.util.regex.Pattern.error(Pattern.java:1924) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.range(Pattern.java:2594) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.clazz(Pattern.java:2507) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.sequence(Pattern.java:2030) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.expr(Pattern.java:1964) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.compile(Pattern.java:1665) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.<init>(Pattern.java:1337) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.compile(Pattern.java:1022) [rt.jar:1.7.0_25]
at java.util.regex.Pattern.matches(Pattern.java:1128) [rt.jar:1.7.0_25]
at java.lang.String.matches(String.java:2063) [rt.jar:1.7.0_25]
at org.jboss.pressgang.ccms.model.base.ToPropertyTag.isValid(ToPropertyTag.java:23) [pressgang-ccms-model-1.1-20130906.021929-65.jar:]
Fixed in 1.2-SNAPSHOT build 201309170914 At first I thought this was caused by a versioning problem because the NPE was from being unable to find the revision number. However upon looking into it more this morning I found the root cause was actually because the wrong parent revision was being specified. As for the book being unable to build I also did a fix in csprocessor 1.0.2 so that the outgoing relationships aren't pulled down, since they aren't used. Which in turn allows the book to be built against the 1.1 API without the error occurring. |