[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Tue Jun 9 18:55:35 UTC 2009
gordonp
Tue Jun 9 14:55:35 EDT 2009
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser
In directory dev.open-bio.org:/tmp/cvs-serv19448/src/main/org/biomoby/shared/parser
Modified Files:
ServiceException.java
Log Message:
Escape '<' in exception messages, as this can cause problems in XML serialization
moby-live/Java/src/main/org/biomoby/shared/parser ServiceException.java,1.13,1.14
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java 2007/05/30 17:44:19 1.13
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/shared/parser/ServiceException.java 2009/06/09 18:55:35 1.14
@@ -493,7 +493,7 @@
xml.append("<moby:"+ MobyTags.EXCEPTIONCODE + ">"+code+"</moby:"+MobyTags.EXCEPTIONCODE+">");
if(getMessage() != null){
- xml.append(" <moby:"+MobyTags.EXCEPTIONMESSAGE+">"+getMessage()+"</moby:"+MobyTags.EXCEPTIONMESSAGE+">");
+ xml.append(" <moby:"+MobyTags.EXCEPTIONMESSAGE+">"+getMessage().replaceAll("<","<")+"</moby:"+MobyTags.EXCEPTIONMESSAGE+">");
}
xml.append(" </moby:" + MobyTags.MOBYEXCEPTION + ">");
More information about the MOBY-guts
mailing list