Open jensriga opened 6 years ago
Maybe this helps: I was able to reproduce the issue on a clean CentOS 7 VM with a new installation of MarkLogic Server.
The only significant difference: under Linux all 8 binary files are broken, not just 3 out of 8 like under Windows 10
Good bug report!
import.zip Hello, I have reviewed this situation and I have a minor change into "Export-binary-bug" branch, with this change export brings the correct file content to binary and text files.
Attached to this comment is a zip with more files for testing purposes.
Situation
I am using mlcp to export all documents of a database to the local filesystem. In the end, I have the correct number of local files, but some files that should be binaries actually contain XML content from other documents. The XML documents themselves are okay.
Steps to reproduce the issue
C:\Temp\mlcp\import
:mlcp.bat import -host localhost -port 8070 -username **** -password **** -mode local -input_file_path C:\Temp\mlcp\import -output_uri_replace "/C:/Temp/mlcp/import,''"
for $doc in fn:doc() let $uri := fn:document-uri($doc) let $size := if (fn:exists($doc/binary())) then xdmp:binary-size($doc/binary()) else xdmp:binary-size(xdmp:unquote(xdmp:quote($doc),(),"format-binary")/binary()) order by $uri ascending return $uri || " -> " || $size
Everything looks good so far.mlcp.bat export -host localhost -port 8070 -username **** -password **** -mode local -output_file_path C:\Temp\mlcp\export
My system environment