[
https://issues.jboss.org/browse/SRAMP-185?page=com.atlassian.jira.plugin....
]
Eric Wittmann edited comment on SRAMP-185 at 4/24/13 11:28 AM:
---------------------------------------------------------------
The problem is using spaces and quotes in CLI commands. The s-ramp:query command *tries*
to be helpful and mash all of its arguments together into a single s-ramp query, but it
doesn't always do the right thing. Try this:
s-ramp:query "/s-ramp[xp2:matches(@contentType, '.*')]"
This will cause the query command to receive only one argument - the query. Your other
variants cause the query command to receive three arguments:
s-ramp:query /s-ramp[xp2:matches(@contentType,
.*
)]
The command tries to be helpful by concat'ing all its arguments, but by that time the
quotes have been lost.
was (Author: eric.wittmann):
The problem is using quotes in CLI commands. The s-ramp:query command *tries* to be
helpful and mash all of its arguments together into a single s-ramp query, but it
doesn't always do the right thing. Try this:
s-ramp:query "/s-ramp[xp2:matches(@contentType, '.*')]"
This will cause the query command to receive only one argument - the query. Your other
variants cause the query command to receive three arguments:
s-ramp:query /s-ramp[xp2:matches(@contentType,
.*
)]
The command tries to be helpful by concat'ing all its arguments, but by that time the
quotes have been lost.
"matches" query parsing error in CLI?
-------------------------------------
Key: SRAMP-185
URL:
https://issues.jboss.org/browse/SRAMP-185
Project: S-RAMP
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Client, Core
Affects Versions: 0.1.1
Reporter: Lukas Krejci
Assignee: Kurt Stam
s-ramp> query /s-ramp[xp2:matches(@contentType, '.*')]
Querying the S-RAMP repository:
/s-ramp[xp2:matches(@contentType, .* )]
FAILED to query the repository.
Unterminated argument list.
s-ramp> query /s-ramp[xp2:matches(@contentType, ".*")]
Querying the S-RAMP repository:
/s-ramp[xp2:matches(@contentType, .* )]
FAILED to query the repository.
Unterminated argument list.
s-ramp> query /s-ramp[xp2:matches(@contentType, "a")]
Querying the S-RAMP repository:
/s-ramp[xp2:matches(@contentType, a )]
FAILED to query the repository.
Expected a string literal as the argument (the only supported argument type for
the argument).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira