Bug #431
closedupload method bugs
0%
Description
The upload method in DataPackage class calls the method incrementPackageIds.
This method puts the metadata files into strings which is problematic for very
large packages.
Also, data and metadata are treated identically which causes a problem when
attempts are made to put ids into data file.
Also, upload attempts to see if a file is data by checking whether or not it is
an xml file. This will cause problems if XML is ever used for data.
Should add method to check if file is a data file (using triples).
Updated by Dan Higgins over 22 years ago
modified code to use streams for datafiles rather than strings. Also changed the
method to write new metadata file one at a time, rather than saving all as
strings and then saving. Changed several methods to correctly handle binary data
(ie Streams rather than readers)