keeps / dbptk-developer

DBPTK Developer - library and command-line tool for execution of database preservation actions
http://www.database-preservation.com
GNU Lesser General Public License v3.0
43 stars 19 forks source link

Valid (KOST-VAL-Validation) .siard-file cannot be loaded in dbptk #522

Open ibbenz opened 2 years ago

ibbenz commented 2 years ago

Description: I want to upload a .siard-file into dbptk. I validated the file with KOST-Val. dbptk throws the following error: Could not import the metadata to the Solr instance: Metadata editing only supports SIARD version 1, 2.0, 2.1

Steps required to reproduce the bug:

  1. Load the attached file into dbptk. (don't forget to change the extension from .zip to .siard)

Attach the dbptk-app.log.txt file below. dbvtk.log

Image of the validation: KOST_VAL_Validation

Image of the Error: Import_Error

The file: 0_4-6_oe_Northwind_complex.zip

hmiguim commented 1 year ago

I did the validation with DBPTK and it reported 4 failed requirements, that is causing the browse incident.

ibbenz commented 1 year ago

Up to now I was not able to validate the file with DBPTK Desktop due to the fact, that I had to load/open the file in DBPTK first before the validation-UI appears.

How is it possible to validate the file with DBPTK without opening/loading it into the DBPTK Desktop?

As soon as I know that, I can check which requirements are not achieved.

hmiguim commented 1 year ago

DBPTK Desktop uses under the hood DBPTK Developer which can be used as a command-line tool to validate the SIARD.

luis100 commented 1 year ago

Up to now I was not able to validate the file with DBPTK Desktop due to the fact, that I had to load/open the file in DBPTK first before the validation-UI appears.

How is it possible to validate the file with DBPTK without opening/loading it into the DBPTK Desktop?

As soon as I know that, I can check which requirements are not achieved.

The issue seems to be a NullPointerException (NPE), mostly points to an unexpected situation, something that we assumed was always there and in this case is not. We would need the stacktrace of the NPE to find out where this is happening and allow the interface to be shown even when file opened is not a SIARD or is an invalid SIARD.

ibbenz commented 1 year ago

java -jar "-Dfile.encoding=UTF-8" dbptk-app-X.Y.Z.jar

DBPTK Desktop uses under the hood DBPTK Developer which can be used as a command-line tool to validate the SIARD.

Accordingly to the dbptk-Developer information of the DBPTK homepage the file dbptk-app....jar is needed. java -jar "-Dfile.encoding=UTF-8" dbptk-app-X.Y.Z.jar I didn't find the .jar in the git-folders of https://github.com/keeps/dbptk-developer.

Can you post the downloadlink to the DBPTK-Developer please?

hmiguim commented 1 year ago

You can find the link in Releases: https://github.com/keeps/dbptk-developer/releases/tag/v2.10.1