dmwm / PHEDEX

CMS data-placement suite
8 stars 18 forks source link

blockreplicas/ produces 404 error. #980

Open vkuznet opened 9 years ago

vkuznet commented 9 years ago

Hi, if I place the following URL https://cmsweb.cern.ch/phedex/datasvc/json/prod/blockreplicas/ with slash at the end I'll get 404 Not Found error: failed to initialize data service API 'blockreplicas/': error loading/compiling module

I think API should handles gracefully the slash. Please check other APIs too for this behavior.

nataliaratnikova commented 5 years ago

The format is documented in https://github.com/dmwm/PHEDEX/blob/master/perl_lib/PHEDEX/Web/Core.pm#L16-L19 and implies no slash separating the path and query. This is true for all APIs.