Can't hydrate plugin without an `id` error on /admin/plugins page

I am on version 1.3.0.beta4 and get this JS error on /admin/plugins (logged in as admin). Server logs show “200 OK” although the URL seems incorrect:

Started GET "/admin//plugins?_=1427438873295" for 122.166.214.142 at 2015-03-27 06:49:46 +0000
Processing by Admin::PluginsController#index as JSON
  Parameters: {"_"=>"1427438873295"}
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)

Notice the double slash in “/admin//plugins”. Could this be the cause?

I reviewed the code and the most likely cause for this is that you have a plugin installed that doesn’t have a name in its metadata. The name field is required for that page to work.

The double slash in the path appears to be harmless from a request standpoint but it needed to be fixed:

https://github.com/discourse/discourse/commit/88c4250df7999d23eff60d94748debe5107a0bb6

3 Likes