Uploaded image for project: 'tools-interface-repository#interface-repository'
  1. tools-interface-repository#interface-repository
  2. IFREPO-66

Web interface delete fails for interface owner.

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.0
    • 2.0
    • opendof
    • None

      The following exception is thrown when attempting to delete a working interface that is allocated to me:

      14:49:33.332 DEBUG [qtp523691575-43] o.o.t.r.i.s.m.m.ManageInterfacePanel - Failed to delete interface [1:

      {00010000}] - org.opendof.tools.repository.interfaces.da.InsufficentRightsException: You must be the owner of the working interface: [1:{00010000}

      ] to delete it
      org.opendof.tools.repository.interfaces.da.InsufficentRightsException: You must be the owner of the working interface: [1:

      {00010000}

      ] to delete it
      at org.opendof.tools.repository.interfaces.opendof.OpendofController.deleteInterface(OpendofController.java:374)
      at org.opendof.tools.repository.interfaces.core.CoreController.deleteInterface(CoreController.java:265)
      at org.opendof.tools.repository.interfaces.servlet.menu.manage.ManageInterfacePanel$DeleteConfirmationHandler.onConfirm(ManageInterfacePanel.java:411)
      at org.opendof.tools.repository.interfaces.servlet.menu.ConfirmPanel$1.onClick(ConfirmPanel.java:32)

      OpendofController.deleteInterface has the following comparison:

      if (!user.email.equals(idata.accessGroup.email))
      throw new InsufficentRightsException("You must be the owner of the working interface: " + iid + " to delete it");

      Should it be comparing user.email to idata.submitter.email instead?

            Adams Chad
            jclark Joseph Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: