Closed GoogleCodeExporter closed 9 years ago
It should be noted that InPlace imports were working as expected before
Alfresco was upgraded to 4.0.2.11 (from 4.0.1). Is it possible that some
change in Alfresco APIs is preventing the BFSIT from recognizing the source
files are in the content store file system already?
Original comment by ehar...@ziaconsulting.com
on 10 Dec 2012 at 6:11
Yep definitely possible, though unfortunate if that is the case!
The code that detects whether an in-place import is possible or not is
isInContentStore() at line 169 of
org.alfresco.extension.bulkfilesystemimport.impl.AbstractBulkFilesystemImporter
[1]. Basically all it does is confirm that the contentstore is a
FileContentStore then see whether the source path is within that
FileContentStore's storage directory or not.
I'll add some debug logging to that method, but in the meantime are you able to
copy that one method and run it independently (e.g. in a Web Script)? That
should give you some hints about what's going on.
[1]
http://code.google.com/p/alfresco-bulk-filesystem-import/source/browse/src/main/
java/org/alfresco/extension/bulkfilesystemimport/impl/AbstractBulkFilesystemImpo
rter.java#169
Original comment by pmo...@gmail.com
on 10 Dec 2012 at 6:45
Original comment by pmo...@gmail.com
on 11 Jan 2013 at 10:56
It appears that Alfresco v4 changed the default content store - from a vanilla
FileContentStore to an AbstractTenantRoutingContentStore [1] that wraps a
single FileContentStore. The isInContentStore() method mentioned above is
therefore detecting that an in-place import is not possible and falling back on
a streaming import (which will always work, no matter which content store is
configured into Alfresco).
The fix is to implement issue #95, at least for the
AbstractTenantRoutingContentStore. Until that time the import tool won't
support in-place imports on Alfresco v4+.
[1]
http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/tenant/A
bstractTenantRoutingContentStore.html
Original comment by pmo...@gmail.com
on 17 Jan 2013 at 9:59
This issue was closed by revision fab325a64458.
Original comment by pmo...@gmail.com
on 18 Jan 2013 at 1:20
Peter, are you planning to release an amp with this revision (the fix)?
Original comment by ehar...@ziaconsulting.com
on 21 Jan 2013 at 6:39
Yes - please refer to the roadmap [1].
[1] http://code.google.com/p/alfresco-bulk-filesystem-import/wiki/Roadmap
Original comment by pmo...@gmail.com
on 21 Jan 2013 at 7:20
Issue 122 has been merged into this issue.
Original comment by pmo...@gmail.com
on 7 Feb 2013 at 12:12
Original issue reported on code.google.com by
ehar...@ziaconsulting.com
on 7 Dec 2012 at 11:15