owncloud / data_exporter

Export/Import for ownCloud user data
GNU General Public License v2.0
7 stars 5 forks source link

reshares are exported with path `null` #114

Open butonic opened 4 years ago

butonic commented 4 years ago

einstein shared core-10.3.0RC1 to marie. that is exported properly

cat data/export/einstein/shares.jsonl                                    
{"path":"\/core-10.3.0RC1","shareType":"user","owner":"einstein","sharedBy":"einstein","sharedWith":"marie","permissions":31,"expirationDate":null,"password":null,"name":null,"token":null}

marie reshared core-10.3.0RC1 to richard. the export for einstein now properly contains:

cat data/export/einstein/shares.jsonl                                            
{"path":"\/core-10.3.0RC1","shareType":"user","owner":"einstein","sharedBy":"einstein","sharedWith":"marie","permissions":31,"expirationDate":null,"password":null,"name":null,"token":null}
{"path":"\/core-10.3.0RC1","shareType":"user","owner":"einstein","sharedBy":"marie","sharedWith":"richard","permissions":31,"expirationDate":null,"password":null,"name":null,"token":null}

but the export for marie is missing a path

 cat data/export/marie/shares.jsonl           
{"path":null,"shareType":"user","owner":"einstein","sharedBy":"marie","sharedWith":"richard","permissions":31,"expirationDate":null,"password":null,"name":null,"token":null}

I think we should omit the reshare in maries export ...