[jboss-jira] [JBoss JIRA] (WFLY-9643) Getting Internal server error on exception if the rest service content type is "application/xml"

Marek Kopecký (JIRA) issues at jboss.org
Tue Jan 2 06:16:00 EST 2018


     [ https://issues.jboss.org/browse/WFLY-9643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marek Kopecký updated WFLY-9643:
--------------------------------
    Steps to Reproduce: 
1) create a rest service 
{code:java}
@RestController
@RequestMapping({"security/testController"})
public class TestController
{
  @RequestMapping(value={"/applicationList"}, method={org.springframework.web.bind.annotation.RequestMethod.GET}, headers={"Accept=application/xml"} , produces=MediaType.APPLICATION_JSON_VALUE)
  public TreeDataProvider getListOfApplication()
  {
    return new TreeDataProvider();
  }
}
{code}
2) Create a Spring interceptor and throw an exception
3) create a spring exception handler to return exception as json


  was:
1) create a rest service 
@RestController
@RequestMapping({"security/testController"})
public class TestController
{
  @RequestMapping(value={"/applicationList"}, method={org.springframework.web.bind.annotation.RequestMethod.GET}, headers={"Accept=application/xml"} , produces=MediaType.APPLICATION_JSON_VALUE)
  public TreeDataProvider getListOfApplication()
  {
    return new TreeDataProvider();
  }
}
2) Create a Spring interceptor and throw an exception
3) create a spring exception handler to return exception as json




> Getting Internal server error on exception if the rest service content type is "application/xml"
> ------------------------------------------------------------------------------------------------
>
>                 Key: WFLY-9643
>                 URL: https://issues.jboss.org/browse/WFLY-9643
>             Project: WildFly
>          Issue Type: Bug
>          Components: REST
>            Reporter: Gopal krishna
>            Assignee: Alessio Soldano
>
> We are getting Internal server error if any exception is thrown from spring interceptor  when rest API header is set as "application/xml". This works if the rest API header is set as "application/json".
> we didnt see this issue in jboss 7 and  WAS



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list