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

No escaping of " characters #18

Open
GoogleCodeExporter opened this Issue Jun 1, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter

GoogleCodeExporter commented Jun 1, 2015

What steps will reproduce the problem?
1. Create a new topic with either a name or an occurrence containing the 
character ", for Example with TMAPI: topic.createName("My \" Name", new 
ArrayList<Topic>());
2. Serialize the map with a CTMTopicMapWriter

What is the expected output? What do you see instead?
The name string should be escaped like
-  <http://psi.topicmaps.org/iso13250/model/topic-name> : """My " Name"""
instead of
-  <http://psi.topicmaps.org/iso13250/model/topic-name> : "My " Name"

What version of the product are you using? On what operating system?
1.0.7


Original issue reported on code.google.com by eferonline on 7 Sep 2010 at 9:02

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Jun 1, 2015

I think it's fixed in trunk.

In the meantime you may want to use the TMAPIX' CTMTopicMapWriter which 
provides less options but is well tested and should not create invalid CTM: 
https://code.google.com/p/tmapix/

Original comment by lars.he...@gmail.com on 7 Sep 2010 at 8:20

GoogleCodeExporter commented Jun 1, 2015

I think it's fixed in trunk.

In the meantime you may want to use the TMAPIX' CTMTopicMapWriter which 
provides less options but is well tested and should not create invalid CTM: 
https://code.google.com/p/tmapix/

Original comment by lars.he...@gmail.com on 7 Sep 2010 at 8:20

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Jun 1, 2015

... and please *don't* use in TMAPI:

topic.createName("My \" Name", new ArrayList<Topic>());

correct usage:

topic.createName("My \" Name");


Original comment by lars.he...@gmail.com on 7 Sep 2010 at 8:28

GoogleCodeExporter commented Jun 1, 2015

... and please *don't* use in TMAPI:

topic.createName("My \" Name", new ArrayList<Topic>());

correct usage:

topic.createName("My \" Name");


Original comment by lars.he...@gmail.com on 7 Sep 2010 at 8:28

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Jun 1, 2015

Thanks for your replies. Hopefully a new jar release with the fixes will come 
out soon.

I know and already use TMAPIX for XTM handling.

And thanks for the hint. I must have overlooked the dots of "Topic... scope" in 
the method signature.

Original comment by eferonline on 8 Sep 2010 at 7:18

GoogleCodeExporter commented Jun 1, 2015

Thanks for your replies. Hopefully a new jar release with the fixes will come 
out soon.

I know and already use TMAPIX for XTM handling.

And thanks for the hint. I must have overlooked the dots of "Topic... scope" in 
the method signature.

Original comment by eferonline on 8 Sep 2010 at 7:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment