-
Notifications
You must be signed in to change notification settings - Fork 333
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
Method not allowed (405) in forwardTo(anotherClass.class).method(arg) #1107
Comments
what about adding @\options? or any other required method. could you provide some code sample to help us reproduce this? |
My apologies, this occurs on call forwardTo:
|
Maybe because of his method being Put and he can not do the forward? |
I don't know about http rules, Turini could answer. Maybe this behavior is fully expected. |
the method you’re forwarding the request also accepts the PUT method? It might be |
+1 Any help? |
Error on update Vraptor from 4.2.0-RC2 to 4.2.0.Final.
The method called not have any annotation.
The header response is
HTTP/1.1 405 Method Not Allowed Date: Sat, 10 Feb 2018 16:26:06 GMT Server: Apache Logado: true Location: https://192.168.0.69:443/operacaocaixa/0 Allow: OPTIONS Content-Type: text/html;charset=windows-1252 Content-Language: en Content-Length: 1020 Keep-Alive: timeout=5, max=200 Connection: Keep-Alive
On the code:
@Transactional @Put("/entrega/{cod}/{entregue}") public void entrega(Long cod, Boolean entregue){ ...some logic code... result.forwardTo(Another.class).myNotAnnotedMethod(data); }
The method is completely executed with any errors, the problem is the response 405.
Obs: I am working with CORS by Interceptor.
The text was updated successfully, but these errors were encountered: