Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2338 closed defect (bug) (fixed)

API regression on return value for missing plugin

Reported by: tellyworth's profile tellyworth Owned by: dd32's profile dd32
Milestone: Plugin Directory v3.0 Priority: normal
Component: Plugin Directory Keywords:


There's a mismatch between the old API and new when fetching info for a plugin that doesn't exist:

{"error":"Plugin not found.","contributors":[]}

This trips up some clients. See

Change History (2)

#1 @dd32
8 years ago

  • Owner set to dd32
  • Resolution set to fixed
  • Status changed from new to closed

In 4566:

Plugin Directory: Handle API failures better, and output 'null' when an individual plugin API call fails, for backwards compatibility.

Fixes #2338

#2 @dd32
8 years ago

In 4570:

Plugin Directory: Follow up to [4566]; in the event that a falsey value is sent to the client, do not convert it to an object for the PHP serialized output handler.

See #2338

Note: See TracTickets for help on using tickets.