-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Mime Type "null": 'mimeType' must be not empty #80
Comments
Your problem is the same as #78. If you are upgrading from 1.3.x, please read http://alvarosanchez.github.io/grails-spring-security-rest/docs/guide/whatsNew14.html. Essentially, you have to configure the filter chains accordingly (first item in what's new). |
I have the same problem with a newly created app. But I don't really get it.
but I always get the mimeType = null exception. I can get a Token and I can even logout. But I cannot access my controllers. Best, |
It works if I use the header
If this header is missing I always get the mimeType 500 ERROR. |
I do have the same problem on 1.4.0.RC3. I have my filterChain configured. grails.plugin.springsecurity.filterChain.chainMap = [ |
This is going to be solved via #82. Meanwhile, the workaround is to disable bearer token support:
|
after fixing issue #79 and updating to RC2
a new exception is raised. Again this exception is raised if i request a html or gsp page - no form, just a GET request in the browser.
org.springframework.http.InvalidMediaTypeException: Invalid mime type "null": 'mimeType' must not be empty
com.odobo.grails.plugin.springsecurity.rest.RestTokenValidationFilter.matchesBearerSpecPreconditions(RestTokenValidationFilter.groovy:143)
com.odobo.grails.plugin.springsecurity.rest.RestTokenValidationFilter.doFilter(RestTokenValidationFilter.groovy:63)
grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
com.odobo.grails.plugin.springsecurity.rest.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.groovy:110)
grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
com.odobo.grails.plugin.springsecurity.rest.RestLogoutFilter.doFilter(RestLogoutFilter.groovy:66)
com.brandseye.cors.CorsFilter.doFilter(CorsFilter.java:82)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:745)
The text was updated successfully, but these errors were encountered: