-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compatibility with old roscpp using dxr/quick-xml fix #8
Conversation
@@ -1011,7 +1011,7 @@ impl Handler for GetParamHandler { | |||
let key_path = key_full.strip_prefix('/').unwrap_or(&key_full).split('/'); | |||
|
|||
Ok(match params.get(key_path) { | |||
Some(value) => (1, "".to_owned(), value.to_owned()), | |||
Some(value) => (1, format!("Parameter [{}]", &key_full), value.to_owned()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we for consistency keep the formatting string the same as below or adjust the line below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, fixed.
Just out of curiosity - what did you think about the simplified client API (i.e. removal of the |
How would that look like? |
I'm referring to changes like this one: (i.e. |
Oh, that makes a lot of sense. I wonder why I did separate it in the first place. |
The previously used version of
quick-xml
(dependency ofdxr
) sometimes emitted self-closing XML tags (like<this />
), instead of the longer form (<this></this>
). which is not supported by some versions of roscpp (causing a C++ exception). Whilequick-xml
has an option calledexpand_empty_elements
, whichdxr
uses (because apparently handling self-closing tags is a known issue in xmlrpc libraries), that option was not always respected.Dxr has now released v0.7, which comes with the fixed quick-xml version and some minor API changes.
Actual underlying fix:
https://github.com/tafia/quick-xml/blame/a5ad85e0020b62182a377338b887e8796ffb0acf/src/se/element.rs#L484
Issue thread on dxr's repo:
ironthree/dxr#23