HTTP 400 errors when percent-encoded slashes (%2F) are sent to JBoss

Solution Unverified - Updated -

Issue

A JAX-RS service is configured with @Path("/a/{path}"), but when we send a request to /a/my%2Fpath it fails with a HTTP 400 error rather than running the method with path set to "my/path".

Environment

  • JBoss Enterprise Application Platform 5
  • JBoss Enterprise Application Platform 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.