keeps / commons-ip

Commons IP is project that provide a command-line tool and Java Library to validate and manipulate E-ARK Information Packages, so to create or process E-ARK SIP and AIP and also validate them against official specifications.
http://keeps.github.io/commons-ip/
GNU Lesser General Public License v3.0
11 stars 14 forks source link

Commons-ip fails when creating Geospatial #203

Closed MartinR4838 closed 1 year ago

MartinR4838 commented 1 year ago

Hi,

when playing with commons-ip, I´ve encountered bug when jar file fails. I presume it´s coused by space in package type label. Mixed works fine but Geospatial Data not. There are more labels containing space in CSIP content categories https://[earkcsip.dilcis.eu/schema/CSIPVocabularyContentCategory.xml](https://earkcsip.dilcis.eu/schema/CSIPVocabularyContentCategory.xml)

Best regards M.

luis100 commented 1 year ago

Hello, do you have any additional details, as how to reproduce the issue, example code or content and error messages?

MartinR4838 commented 1 year ago

Sorry,

It seems that I have double quotes on wrong position.

MartinR4838 commented 1 year ago

Whole CLI is used by Python´s script, latest version is scraped/downloaded from your github

eark_cli_syntax = (str('java -jar ' + path + '/modules' + '/commons-ip2-cli-' + str(commons_ip) + '.jar' + ' create -m "' + metadata_dir + 'dc.xml;dc" -ms ' + metadata_dir + 'dc.xsd -r "' + data_path

luis100 commented 1 year ago

@MartinR4838 can you share the output of the tool with the error report?

MartinR4838 commented 1 year ago

Hi Luis, as it´s mentioned above, I just had double quotes on wrong position. Error came from a bit different CLI syntax in v2.4.0 and it took me a while to get it working.

Thanks, you close this issue :-).

MartinR4838 commented 1 year ago

You can close it.