Vendor Meta file is not valid blocking FTP packages getting ingested to BCMS
@ChristinaTromp @DioneMentis -
Expected behaviour
PDF Vendor FTP packages should get picked up and automatically loaded to BCMS
Current behaviour
All PDF Vendor FTP packages are failing because of error introduced in vendor-meta file by BCMS
NCBI session error passed to BCMS:
The error seemsto be in the vendor-meta file:
FATAL : 2022-05-27 16:02:52: Cannot parse /pmc/work/books/bcms/submitvendor/temp/12390653/support/vendor-meta.xml: /pmc/work/books/bcms/submitvendor/temp/12390653/support/vendor-meta.xml:1: parser error : Opening and ending tag mismatch: book-submit line 1 and unparseable
This is what is in the vendor-meta file that was sent to Apex/returned by Apex:
<!DOCTYPE book-submit SYSTEM "books-submit-vendor.dtd"><book-submit bcms-id="bcms5028" job-id="3ff954" submission-type="book"></></book-submit> (edited)
2:34
The </> was in the vendor-meta file from the time of package submission
Steps to reproduce
Possible solution
[Not required. Suggest a fix for the bug]
NCBI's priority feedback
Y, blocking all PDF testing with handoffs to Vendor
QA Steps
- Create a PDF wholebook
- Upload a source file, for example nhqdr2014w-bcms5145.pdf
- After uploading the source file, the system automatically generates the
vendor-meta.xml
in Support section - Download and open the
vendor-meta.xml
file - The content of the file should be as below with different values for "bcms-id" and "job-id"
<!DOCTYPE book-submit SYSTEM "books-submit-vendor.dtd"><book-submit bcms-id="bcms85.1" job-id="39fc39" submission-type="book"/>
- You can validate the xml file here: https://www.ncbi.nlm.nih.gov/pmc/tools/xmlchecker/ to confirm it has no mistakes.