Project

General

Profile

Bug #1883

Cannot create a new remediation.

Added by Randy Reitz about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Start date:
09/19/2011
Due date:
% Done:

0%

Estimated time:
Duration:

Description

Using https://tissue-int.fnal.gov/tissue/configureRemediationActions/ to create a new remediation generates an error:

UNEXPECTED EXCEPTION: <class 'TissueCoreImpl.IssueAdminImpl.ActionAlreadyExists'> Action 'Exemption requested' already exists
File "/fnal/ups/prd/tissue_gui/v2_1b/dj/tissue_gui/src/dadmin_gui.py", line 126, in configureRemediationActions
impl.addRemediationAction(this_agent, ra_descr=this_descr)
File "/fnal/ups/prd/tissue_core/v2_1/TissueCoreImpl/IssueAdminImpl.py", line 578, in addRemediationAction
raise IssueAdminImpl.ActionAlreadyExists(ra_descr)

History

#1 Updated by Lauri Carpenter about 8 years ago

  • Status changed from New to Assigned

#2 Updated by Lauri Carpenter about 8 years ago

  • Status changed from Assigned to Resolved

Need to explicitly check for "is not None" in the check where we determine whether we are updating an existing req or adding a new one:

  if data.get('id') is not None:
    # update existing ra
  else:
    # add new ra

Otherwise the remediation-action with PK=0 ("Exemption requested") will be re-ADDed and will fail because it already exists.

#3 Updated by Randy Reitz about 8 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF