You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to export the following rule:
//PrimaryPrefix/Name[@Image[ends-with(., 'Instant.now')]][pmd-java:typeIs('java.time.Instant')]|
//PrimaryPrefix/Name[@Image='now'][//ImportDeclaration[@Static=true()]/Name[@Image='java.time.Instant.now' or @Image='java.time.Instant']]
The export result pane displays the rule incorrectly escaped:
<value>
<![CDATA[
//PrimaryPrefix/Name[@Image[ends-with(., 'Instant.now')]][pmd-java:typeIs('java.time.Instant')]|
//PrimaryPrefix/Name[@Image='now'][//ImportDeclaration[@Static=true()]/Name[@Image='java.time.Instant.now' or @Image='java.time.Instant']]
]]>
</value>
Within a CDATA it should not be necessary to escape apostrophe as ', and the same seemed to happen with double quotes as well.
To Reproduce
Steps to reproduce the behavior:
Launch the designer from run.sh designer
Specify rule as above
Click on Export XPath to XML rule
Look at Export result pane
When you try to use the rule as is with pmd, the rule parser will blow up with an XPath parsing exception.
Expected behavior
The CDATA body is not escaped unnecessarily.
Screenshots
Let me know if you need one.
Desktop (please complete the following information):
OS: macOS Mojave 10.14.6
Java:
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to export the following rule:
The export result pane displays the rule incorrectly escaped:
Within a CDATA it should not be necessary to escape apostrophe as
'
, and the same seemed to happen with double quotes as well.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The CDATA body is not escaped unnecessarily.
Screenshots
Let me know if you need one.
Desktop (please complete the following information):
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)
The text was updated successfully, but these errors were encountered: