From 33b4623bfe3d4ab0d5ecb0b27776de558a8f9646 Mon Sep 17 00:00:00 2001 From: gmantele <gmantele@ari.uni-heidelberg.de> Date: Fri, 4 Apr 2014 16:08:52 +0200 Subject: [PATCH] TAP: Fix incorrect XML format: the INFO for PROVIDER was not ended properly => an error was raised by TOPCAT when a Java error was occuring in TAP or in a query execution. --- src/tap/resource/TAP.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tap/resource/TAP.java b/src/tap/resource/TAP.java index 4855f3b..3ad3a55 100644 --- a/src/tap/resource/TAP.java +++ b/src/tap/resource/TAP.java @@ -16,7 +16,8 @@ package tap.resource; * You should have received a copy of the GNU Lesser General Public License * along with TAPLibrary. If not, see <http://www.gnu.org/licenses/>. * - * Copyright 2012 - UDS/Centre de Données astronomiques de Strasbourg (CDS) + * Copyright 2012,2014 - UDS/Centre de Données astronomiques de Strasbourg (CDS), + * Astronomisches Rechen Institute (ARI) */ import java.io.BufferedInputStream; @@ -26,22 +27,21 @@ import java.io.IOException; import java.io.PrintWriter; import java.net.MalformedURLException; import java.net.URL; - import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashMap; import java.util.Iterator; import java.util.Map; + import javax.servlet.ServletConfig; import javax.servlet.ServletException; - import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import tap.ServiceConnection; -import tap.TAPException; import tap.ServiceConnection.LimitUnit; +import tap.TAPException; import tap.db.DBConnection; import tap.error.DefaultTAPErrorWriter; import tap.formatter.OutputFormat; @@ -394,7 +394,7 @@ public class TAP< R > implements VOSIResource { output.print(service.getProviderDescription()); output.println("]]>\n\t\t</INFO>"); }else - output.println("\">"); + output.println("\" />"); } // Print the query (if any): -- GitLab