K
keesvlasblom
Guest
Hi, Sorry that it has taken some time, but I still have not found the reason for this behaviour. After some puzzling it seems there is something wrong with the composing of URL and redirections. I try to make things clear. Using the webbrowser I see this behaviour: http://localhost:8810/MoneyVault/rest/MoneyVaultService/Test -> 302 Found http://localhost:8810/MoneyVault/static/auth/login.jsp -> shows the login page . localhost:8810/.../j_spring_security_check -> 302 found localhost:8810/.../Test -> 200 OK In the loggin of the Appserver I can see my debug messages as expected. When I do a login from my app in the Telerik Appbuilder I get a different behaviour. When the serviceURI is set as http://localhost:8810/MoneyVault/rest I see the following requests: http://localhost:8810/MoneyVault/rest/static/home.html?_ts=145735507-9774378336-1 -> 401 Not authenticated http://localhost:8810/MoneyVault/rest/static/auth/j_spring_security_check -> 401 Not authenticated and also no-debug messages are found in the logging. As you can see the difference with the webbrowser call is the …/rest/… part in the URL, caused by the definition of the service URI. So the next thing I tried was to remove the “/rest/” part from the serviceURI. But that is not working at all. The first call is: http://localhost:8810/MoneyVault/static/home.html?_ts=145736497-8051664180-1 -> 200 Found Due to the fact that this call gets a response with contenttype text/html (the previous call to home.html returned response with application/json) and that the responsestatus was 200 no authentication was forced and a j_spring_security_check was not called. So next I tried to change the file progress.all.js. I changed the URL for the spring security check so that the “/rest/” part of the URL was omitted, resulting in call: http://localhost:8810/MoneyVault/static/auth/j_spring_security_check -> 200 Found And I also found the desired debug messages in the logging. But the question is now: Is this change in progress.all.js needed or do I have to change something in the configuration files or do I have to do something else to make this work? Regards Kees
Continue reading...
Continue reading...