Skip to content

API requests to `/api/v1/plotters/plotterparameters/` return nothing conditionally

What

Requesting the plotter parameters of the platform return an empty [] when requested by an anonymous user when the report is locked (EDIT: or if it's published).

Reproduce
  • Create a new report and add experiments
  • Add a plot
  • Save report
  • Lock report
  • View the report/publication URL
  • Look in the network activity panel of your browser's devtools, find the request for the plotterparameters
  • Since you are logged in, it correctly has fetched the plotter parameters
  • Copy report publication URL
  • Log out
  • View report publication URL
  • Look at the network panel again and find the request
  • Expected: The plotterparameters are returned
  • Actual: An empty [] is returned