dCache/dcache — pull request #702 by paulmillar (2014-07-11 09:50:50+00:00)
Title: srm: fix IllegalStateTransition for COPY requests

If the user cancels a COPY request then the file request is moved to
state CANCELLED; however, if the copy then succeeds anyway, the SRM
attempts to move the job to state DONE. This cannot succeed since
CANCELLED is a final state.

Fix this by first checking whether the job is already in a final
state. Also tidy up some messages.

Target: master
Request: 2.10
Requires-notes: no
Requires-book: no
Acked-by: Tigran Mkrtchyan
Patch: https://rb.dcache.org/r/7147