aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Padgett2011-11-09 17:26:32 (EST)
committerMichael Fiedler2011-11-10 18:43:06 (EST)
commitc71396bc6b9636e1c9f5bd4ba64c800430debaac (patch)
tree30ab04b42229928d59ce55e2644f08de1b6fd6b5
parent44febb6cd14d26524078f705e470b8d363038817 (diff)
downloadorg.eclipse.lyo.server-c71396bc6b9636e1c9f5bd4ba64c800430debaac.zip
org.eclipse.lyo.server-c71396bc6b9636e1c9f5bd4ba64c800430debaac.tar.gz
org.eclipse.lyo.server-c71396bc6b9636e1c9f5bd4ba64c800430debaac.tar.bz2
Bug 363397 - Bugzilla adapter returns wrong status code on bad Accept
header values
-rw-r--r--org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderCatalogService.java2
-rw-r--r--org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderService.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderCatalogService.java b/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderCatalogService.java
index fa13e19..c535439 100644
--- a/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderCatalogService.java
+++ b/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderCatalogService.java
@@ -57,7 +57,7 @@ public class ServiceProviderCatalogService extends HttpServlet {
dispatchTo = "/cm/serviceprovidercatalog_rdfxml.jsp";
} else {
- response.sendError(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE);
+ response.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);
return;
}
diff --git a/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderService.java b/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderService.java
index 3eedf8c..1e57338 100644
--- a/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderService.java
+++ b/org.eclipse.lyo.samples.bugzilla/src/main/java/org/eclipse/lyo/samples/bugzilla/ServiceProviderService.java
@@ -73,7 +73,7 @@ public class ServiceProviderService extends HttpServlet {
} else if (AcceptType.willAccept("text/html", request)) {
dispatchTo = "/cm/serviceprovider_html.jsp";
} else {
- response.sendError(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE);
+ response.sendError(HttpServletResponse.SC_NOT_ACCEPTABLE);
return;
}