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

Document not converted to subtype #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a custom document type "retention" as a subtype of content
2. Add sample document
3. Add meta-data as below
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  <properties>
    <entry key="type">dm:retention</entry>
    <!-- Custom -->
    <entry key="cm:title">Retention form</entry>
    <entry key="dm:documentId">D0477853757</entry>
    <entry key="dm:accountId">00079760</entry>
  </properties>

What is the expected output? What do you see instead?
Document to be converted into Retention type during import and metadata to be 
attached to it. But the document is not imported as "Retention" and meta data 
is not attached to it 

What version of the product are you using? On what operating system?
Alfresco 4.0 on Windows 7

Please provide any additional information below.
Trying to import document with custom content type. I have already added custom 
content type "Retention" but the import utility is not converting document into 
"Retention" type. 
Also tried to import with "cm:content" type but meta-data is not getting 
imported. Not even cm:title.
Pls suggest.  

Original issue reported on code.google.com by hemant1...@gmail.com on 21 Feb 2013 at 5:44

GoogleCodeExporter commented 9 years ago
Can you provide the full filenames (including extensions) of both the parent 
file and the metadata file?

Original comment by pmo...@gmail.com on 21 Feb 2013 at 5:01

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for the reply.

File name: J00000001.Tif
Metadata file name: J00000001.Tif.metadata.properties.xml

FYI, I am using alfresco-bulk-filesystem-import-1.2.1.amp on Alfresco 4.0

Original comment by hemant1...@gmail.com on 22 Feb 2013 at 9:02

GoogleCodeExporter commented 9 years ago
Hi,

I tried to import files this time with the default content type i. e. 
cm:content.
But still metadata is not getting attached to the document. 
Following is the metadata file:
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
  <properties>
    <entry key="type">cm:content</entry>
    <!-- Custom -->
    <entry key="cm:name">Retention</entry>
    <entry key="cm:title">Retention form</entry>
  </properties>

Document name: J00000002.Tif
Metadata file name: J00000002.Tif.metadata.properties.xml

Can you pls suggest.

Original comment by hemant1...@gmail.com on 26 Feb 2013 at 4:43

GoogleCodeExporter commented 9 years ago
Hi,

Problem is solved. 
There was a space at the beginning of Meta data xml file.
After I removed the space, was able to import the document and meta-data 
sucessfully.
It will be nice if the XML can be trimmed before parsing it to fix this.

Thanks. 

Original comment by hemant1...@gmail.com on 27 Feb 2013 at 7:04

GoogleCodeExporter commented 9 years ago
Thanks for following up.  Yes, the Java XML properties file parser is pretty 
strict about things like that, and doesn't report errors to the caller when it 
runs into trouble, making reporting / recovery of these kinds of issues tricky.

Original comment by pmo...@gmail.com on 27 Feb 2013 at 4:39