zalando-zmon / zmon-controller

ZMON UI and REST API
https://docs.zmon.io/
Other
21 stars 17 forks source link

Updating dashboard without authorization should result in status code '403', not '500'. #282

Open mohabusama opened 8 years ago

mohabusama commented 8 years ago

When trying to update dashboard with no authorization

Status code is 500 Expected 403

{
   "exception": "org.zalando.zmon.exception.ZMonAuthorizationException",
   "message": "Your are not allowed to create/edit this dashboard",
   "status": 500
}
rajatparida86 commented 6 years ago

@vibhory2j Is this already implemented? asking because I know you worked on the fixing of status codes few days back

rajatparida86 commented 6 years ago

@mohabusama Are you referring to ZMON dashboards or Grafana dashboard?

mohabusama commented 6 years ago

@rajatparida86 I don't think we have such permissions on Grafana dashboards. But you can test it and see how it behaves.