Hi Jordan,
I've confirmed that what you've found is a bug.
Essentially, the AIP Packager has problems whenever anyone tries to
submit a single Collection or Community AIP that has an associated
access control group (e.g. COMMUNITY_*_ADMIN, COLLECTION_*_SUBMIT, etc.).
This functionality works fine if you are doing a *full restore* from
backup. But, it fails to work properly if you are just trying to move a
single Community or Collection.
The only resolution I've found so far is to do the following:
(1) Temporarily disable the METSRIGHTS and DSPACE-ROLES ingestion
crosswalks by putting the following settings in your 'fresh' DSpace
Archive's dspace.cfg:
mets.dspaceAIP.ingest.crosswalk.METSRIGHTS = NIL
mets.dspaceAIP.ingest.crosswalk.DSPACE-ROLES = NIL
(2) Rerun your submit/ingest immediately (you don't need to restart
DSpace). The above settings will ensure that the METSRIGHTS
DSPACE-ROLES crosswalks are disabled and no Collection/Community Groups
or Access Rights will be created. But, the Collection/Community contents
will be submitted (along with any sub-communities, collections or items
underneath it).
(3) Remove the above temporary settings from your dspace.cfg file.
Obviously, this is not an ideal result. Although this will let you
submit a Community or Collection to a fresh DSpace, it will *not* create
any Groups/EPeople or Rights associated with the Collection/Community.
So, you would need to recreate those manually (if needed).
I've logged this bug in our issue tracker (along with the workaround
described above):
https://jira.duraspace.org/browse/DS-1105
- Tim
On 1/17/2012 3:19 PM, Jordan Piscanc wrote:
I'm traying to Backup Restore using AIP packager
folowing the steps:
https://wiki.duraspace.org/display/DSDOC18/AIP+Backup+and+Restore#AIPBackupandRestore-ExportingAIPHierarchy
I'm exporting AIP form the main Dspace ARCHIVE
using:
bin/dspace packager -d -a -t AIP -e ad...@myu.edu -i 4321/4567 aip4567.zip
Than I'm traying to IMPORT this package
in a secondary Dspace Archive
that is a fresh install
with Empty DB and only the main admin user
I'm traing to Submit/Ingest with:
bin/dspace packager -s -a -w -t AIP -e ad...@myu.edu -i 1234/2 aip4567.zip
I exported a Collection that I'm traing
to Submit in a new Comunity.
But the problem is that packager throws me
errors:
Ingesting package located at aip4567.zip
org.dspace.content.crosswalk.CrosswalkInternalException:
org.dspace.content.packager.PackageValidationException: EPerson
j...@myu.edu not found, not added to COLLECTION_4567_SUBMIT
at
org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:339)
at
org.dspace.content.crosswalk.RoleCrosswalk.ingest(RoleCrosswalk.java:258)
at
org.dspace.content.packager.METSManifest.crosswalkXmd(METSManifest.java:1151)
at
org.dspace.content.packager.METSManifest.crosswalkObjectOtherAdminMD(METSManifest.java:1064)
at
org.dspace.content.packager.AbstractMETSIngester.ingestObject(AbstractMETSIngester.java:459)
at
org.dspace.content.packager.AbstractMETSIngester.ingest(AbstractMETSIngester.java:234)
at org.dspace.app.packager.Packager.ingest(Packager.java:565)
at org.dspace.app.packager.Packager.main(Packager.java:427)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Caused by: org.dspace.content.packager.PackageValidationException:
j...@myu.edu not found, not added to COLLECTION_4567_SUBMIT
So I do not understand:
It's impossible to import a Collection to a new fresh install Dspace archive
I have to create all users that I have in the original Archive? :(
Is there any other way to migrate only some comunities/collection from one
archive to a fresh new installation?
Thanks
Jordan PIŠČANC
CenTraCon-SI
www.openstarts.units.it
This message was sent using IMP, the Internet Messaging Program.
--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
Keep