Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.5-INCUBATING
-
None
-
None
Description
How to Reproduce
--------------------------
1) Login to Rave as any user
2) Upload a gadget to the widget store - verify it was added successfully
3) Go back and try to add the same gadget url again
4) You will see the standard "rave has suffered a brief meltdown" page
The issue is that the DefaultWidgetService.registerNewWidget function returns a null Widget object if it finds the URL already in the system. The RavePermissionEvaluator.hasPermission functions are not properly dealing with potential null objects and thus a NPE is thrown.
How to Fix
----------------
1) Improve the RavePermissionEvaluator.hasPermission methods to check for and safely handle possible null objects.
Attachments
Attachments
Issue Links
- blocks
-
RAVE-332 Change logic of adding a duplicate widget
- Closed