sailsjs-angularjs-bootstrap-example
sailsjs-angularjs-bootstrap-example copied to clipboard
Inconsistent behavior with REST 403/500 errors
Seeing odd behavior in Sails v0.9.8 when throwing 500 application errors, and when 403 forbidden errors are triggered from policy configurations where a controller/action is false
. The results are not consistent between Socket and HTTP modes. More research is needed.
To reproduce,
- Visit
http://localhost:1337/rest-examples
. - Click the HTTP and Socket buttons for 403: Forbidden and 500: Internal Server Error
- Compare the results.
Fixed the inconsistency in 500 errors with commit https://github.com/cgmartin/sailsjs-angularjs-bootstrap-example/commit/60d63213dc91c00d7d4b1aae339e2aac9984d705 but 403 errors are still an issue.