Uploaded image for project: 'Rave'
  1. Rave
  2. RAVE-331

Error when trying to upload a duplicate gadget url to widget store

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5-INCUBATING
    • 0.6-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

        1. stacktrace.log
          9 kB
          Tony Carlucci

        Issue Links

          Activity

            People

              carlucci Tony Carlucci
              carlucci Tony Carlucci
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Slack

                  Issue deployment