macressler / alfresco-bulk-filesystem-import

Automatically exported from code.google.com/p/alfresco-bulk-filesystem-import
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Bulk import switches to streaming when dir.root starts with a lower case letter on Windows #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Alfresco + BFSIT on a Windows platform (version should not matter).
2. Set dir.root to start with a lower case drive letter (c:\ vs. C:\)
3. Perform a bulk import of content
4. Observe that the content is actually copied into the usual Alfresco file 
structure instead of being linked in-place

What is the expected output? What do you see instead?

When an import is performed against a content directory that resides within the 
contentstore filesystem, the import should be done in in-place mode.  If the 
dir.root of Alfresco is set to a location that starts with a lower case drive 
letter, the method AbstractBulkFilesystemImporter.isInContentStore incorrectly 
returns "false" when it should return "true".

What version of the product are you using? On what operating system?

BFSIT 1.3.3, Alfresco 4.1.3, Windows Server 2008R2, SQL Server 2008R2.

Please provide any additional information below.

Windows drive letters are case-insensitive, so the comparison of the imported 
file path and the contentstore path should be as well (for the drive letter 
only, as a full case-insensitive path comparison would break on *nix systems).

Original issue reported on code.google.com by nathan.m...@alfresco.com on 16 Jun 2014 at 9:13

GoogleCodeExporter commented 9 years ago

Original comment by pmo...@gmail.com on 16 Jun 2014 at 10:17

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 06bd6e773ab8.

Original comment by pmo...@gmail.com on 16 Jun 2014 at 11:03

GoogleCodeExporter commented 9 years ago
Note: this actually occurred any time the case of anything in the contentstore 
root path didn't match the case of the path typed in by the user when a bulk 
import was initiated (Windows only).

Original comment by pmo...@gmail.com on 16 Jun 2014 at 11:11