Limiting media browser plugins visibility with user permissions cause the whole media browser to crash.
The error message is Fatal error: Unsupported operand media.browser.inc on line 52.
This happens because media browser is unable to handle empty responses from plugins that the user isn't allowed to use.

Patch to fix this bug is provided in this post.

Files: 
CommentFileSizeAuthor
#2 1565448-empty-browser-tab-output.patch732 bytesDave Reid
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]
media-browser-empty-plugins.patch533 bytesattekilpela
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]

Comments

Status:Patch (to be ported)» Needs review

Version:7.x-1.0» 7.x-1.x-dev
StatusFileSize
new732 bytes
PASSED: [[SimpleTest]]: [MySQL] 11 pass(es).
[ View ]

I've confirmed the issue in theory (the proper way to limit permissions is to perform the user_access() checks in hook_media_browser_plugin_info() and not in the actual browser plugin) but here's an alternative patch that backports some of the defensive code to prevent an error in this case.

Status:Needs review» Fixed

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.