Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 96707 invoked from network); 3 Oct 2010 21:03:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Oct 2010 21:03:53 -0000 Received: (qmail 97919 invoked by uid 500); 3 Oct 2010 21:03:53 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 97882 invoked by uid 500); 3 Oct 2010 21:03:53 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 97874 invoked by uid 99); 3 Oct 2010 21:03:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Oct 2010 21:03:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Oct 2010 21:03:52 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o93L3WvH010626 for ; Sun, 3 Oct 2010 21:03:32 GMT Message-ID: <31918280.521331286139812732.JavaMail.jira@thor> Date: Sun, 3 Oct 2010 17:03:32 -0400 (EDT) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Subject: [jira] Resolved: (CXF-2903) Unexpected HTTP response code for @Consumes mismatch In-Reply-To: <3218510.509101279759911415.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin resolved CXF-2903. ----------------------------------- Assignee: Sergey Beryozkin Fix Version/s: 2.3 2.2.11 Resolution: Fixed > Unexpected HTTP response code for @Consumes mismatch > ---------------------------------------------------- > > Key: CXF-2903 > URL: https://issues.apache.org/jira/browse/CXF-2903 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.2.9, 2.2.10 > Reporter: Donal Fellows > Assignee: Sergey Beryozkin > Fix For: 2.3, 2.2.11 > > Attachments: example.zip, taverna.log > > > I have an interface with a method annotated as accepting XML (with {{@Consumes("application/xml")}} and {{@POST}}) and a class that implements that interface; the {{@Path}} is not matched for {{@POST}} by any other method. When I call it and pass in content with that MIME type, it all works. When I pass in content of another MIME type, I get a 404 response; this is unexpected, as I'd expect a 406 (Not Acceptable) response that tells me to pass in XML (to be clear, this _is_ an error case). Having to work around this by accepting all types and doing my own content type negotiation is unacceptable, especially since that decreases the utility of the generated WADL file significantly. Surely CXF should be doing this sort of work for me? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.