Project

General

Profile

Actions

Defect #826

closed

Identities with username *.com has problem with not acceptable exception

Added by Ondřej Kopr about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Rest
Target version:
Start date:
11/07/2017
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

After show identity with username something_gmail.com for example get error with:

{
  "timestamp" : "2017-11-07T09:25:10.759+0000",
  "status" : 406,
  "error" : "Not Acceptable",
  "exception" : "org.springframework.web.HttpMediaTypeNotAcceptableException",
  "message" : "Could not find acceptable representation",
  "path" : "/idm/api/v1/identities/something_gmail.com" 
}

BE error:

2017-11-07 10:46:52.194 ERROR 20054 --- [nio-8009-exec-4] e.b.i.c.exception.RestErrorAttributes    : Error not resolved - errorAttributes needs extension for error attrs [{timestamp=Tue Nov 07 10:46:52 CET 2017, status=406, error=Not Acceptable, exception=org.springframework.web.HttpMediaTypeNotAcceptableException, message=Could not find acceptable representation, path=/idm/api/v1/identities/something_gmail.com}]
2017-11-07 10:46:52.252 ERROR 20054 --- [io-8009-exec-10] e.b.i.c.e.ExceptionControllerAdvice      : [bf61c4e0-eee0-486e-83f7-5e7837a29de0] 

org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation
    at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:192)
    at org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor.handleReturnValue(HttpEntityMethodProcessor.java:183)
    at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)
    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:126)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832)
    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743)
    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:858)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)

Actions

Also available in: Atom PDF