Cannot abort workflow in assigned status
Also, -archived status shouldn't move to another status.
Hi,

for the record, while validating HG1407 in testbed (ReqMgr 0.9.95e), I noticed we cannot abort workflows in "assigned" status (even having the status available in the select box).
It returns a 400 Bad Request with the following message:
"Cannot find ProdMgr for request amaltaro_700_pre11_TTbar_140702_203614_3642 Request may not be known to WorkQueue. If aborted immediately after assignment, ignore this."

If this transition is not allowed, then we should remove the "abort" option from the select box when it's in "assigned" status.

Thanks, Alan.

diff --git a/src/python/WMCore/HTTPFrontEnd/RequestManager/ReqMgrWebTools.py b/src/python/WMCore/HTTPFrontEnd/RequestManager/ReqMgrWebTools.py
index 72da9174d..608f6f07f 100644
--- a/src/python/WMCore/HTTPFrontEnd/RequestManager/ReqMgrWebTools.py
+++ b/src/python/WMCore/HTTPFrontEnd/RequestManager/ReqMgrWebTools.py
@@ -193,9 +193,10 @@ def abortRequest(requestName):
     if response == [] or response[0] == None or response[0] == "":
         msg =  "Cannot find ProdMgr for request %s\\n " % requestName
         msg += "Request may not be known to WorkQueue.  If aborted immediately after assignment, ignore this."
-        raise cherrypy.HTTPError(400, msg)
-    workqueue = WorkQueue.WorkQueue(response[0])
-    workqueue.cancelWorkflow(requestName)
+        logging.warning(msg)
+    else:
+        workqueue = WorkQueue.WorkQueue(response[0])
+        workqueue.cancelWorkflow(requestName)
     return
 
 def insecure():
['src/python/WMCore/HTTPFrontEnd/RequestManager/ReqMgrWebTools.py']