I've got a problem ingesting DSpaceMETSSIP packages using SWORD v2
method on DSpace 1.8.0.
I've created a simple collection without submission workflows defined on
it and when I upload zip packages to it from a sword v2 client I get
"Invalid workflow state" exception on sword server side and ingestion
fails. I've found the source of such exception inside
/WorkflowManagerDefault/ class, specially on it's function:
resolveState(Context context, Deposit deposit, DepositResult result,
VerboseDescription verboseDescription, boolean){
...
// or find out if the item is in the archive
boolean inarch = item.isArchived() || item.isWithdrawn();
// in progress inws inwf inarch action description
// 0 0 0 1 ERROR the deposit
finished, and the item is in the archive; this should never be allowed to arise
// 0 0 1 0 NOTHING the deposit
finished, and the item is in the workflow. Carry on as normal
// 0 1 0 0 START WF the deposit
is finished, and the item is in the workflow, so we start it
// 1 0 0 1 ERROR the deposit
is not finished, and the item is in the archive; this should never be allowed
to arise
// 1 0 1 0 STOP WF the deposit
is not finished, and it is in the workflow. Pull it out into the workspace
// 1 1 0 0 NOTHING the deposit
is not finished, and is in the workspace; leave it there
if (!deposit.isInProgress() && inarch)
{
verboseDescription.append("The deposit is finished, but the item is
already in the archive");
throw new DSpaceSwordException("Invalid workflow state");
}
...
}
My package has inarch=true (archived, not withdrawn) and is not
inProgress so such exception raises, as stated in status table "this
should never be allowed to arise" but arises for every try to upload
files via SWORDv2, it's a code bug or do I need to create collection
workflows to ingest to collection with SWORDv2? If I comment throw line,
ingestion is done correctly.
Thank you in advance
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette