Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Bulk export does not export nodes with no content #17

Open
gmalanga opened this issue Dec 6, 2017 · 3 comments
Open

Bulk export does not export nodes with no content #17

gmalanga opened this issue Dec 6, 2017 · 3 comments

Comments

@gmalanga
Copy link

gmalanga commented Dec 6, 2017

I have a node of type "cm:content" which does not have property "ContentModel.PROP_CONTENT" within a "cm:folder".
The bulk export does not export this node because of:

ContentReader reader = contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);
        if (reader == null)
        {
            // no data for this node
            return false;
        }

within the following method:

org.alfresco.extensions.bulkexport.dao.AlfrescoExportDaoImpl.getContentAndStoreInFile(NodeRef, String)

@gmalanga
Copy link
Author

gmalanga commented Dec 7, 2017

I have done a workaround for this issue, amending the following method:

org.alfresco.extensions.bulkexport.controler.Engine.doCreateFile(NodeRef, String)

and commented out the return statement, as shown below:

            if (this.dao.getContentAndStoreInFile(file, fname) == false)
            {
                log.debug("doCreateFile ignore this file"); 
//                return;
            }

@gsdenys
Copy link
Owner

gsdenys commented Dec 7, 2017 via email

@trycoon
Copy link

trycoon commented Apr 18, 2018

Any progress on this? Our content if mainly metadata-nodes, so 90% of the nodes are skipped during this export. :-(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants