Hi everyone,

I just wanted to raise two issues NYU hit with its migration to 1.2.0,
just in case anyone else sees the same thing.

The first was that the DocMigrator class would fail on 'structure0'
values larger than 16KB.  These are LongString objects, which can't be
cast to regular Strings.  This looks to have been fixed in master
already as a part of KERN-2831, so I'm just mentioning it here in case
it pops up for other migrators:

  https://jira.sakaiproject.org/browse/KERN-2831

The other issue we hit--which might just be a legacy data issue--was
migrations failing for content objects that the '_readOnly' flag set to
'Y':

   "id2814416": {
       "_created": 1332976244517,
       "_createdBy": "abc123",
       "_id": "UmtvQHksEeGFT76YfwAAAQ+",
       "_lastModified": 1332976690260,
       "_lastModifiedBy": "abc123",
       "_nextVersion": "Sj3GsHksEeGFT76YfwAAAQ+",
       "_path": "kQveymeNie/id2814416",
       "_previousVersion": "23RD0XkrEeGFT76YfwAAAQ+",
       "_readOnly": "Y",

Sparsemap's ContentManagerImpl explicitly checks for this flag and
throws an AccessDeniedException if it's set, so the migration couldn't
run on these objects.  To get around this I ended up commenting out the
check, running the affected objects through the migration, then putting
the check back in again.  Does anyone know if this flag is still being
set?  I guess this might crop up again during future migrations.

Thanks,

Mark

-- 
Mark Triggs
<[email protected]>
_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to