[Archivesspace_Users_Group] Archivists Toolkit incompatibility with Java 8 (AR-1157)

Custer, Mark mark.custer at yale.edu
Wed Feb 3 08:44:04 EST 2016


Nancy,

What happens when you use AT version 15 with java 8, just out of curiosity?

As for the import bug in AT version 16, is this the only issue with the upgrade?  If so, I remember that I used to have a horrible hack to import barcodes into the AT, which just involved running an SQL script after every import (perhaps this could be triggered easily, without changing the core code, too?) that would move the barcodes (imported in the @label attribute) to the barcode field, and then change the label field to "Mixed materials".  Assuming something like that could work, you could try something like this in a test instance of the AT as a temporary workaround:

UPDATE ArchDescriptionRepeatingData
SET noteContent = REPLACE(noteContent, '<p xmlns="urn:isbn:1-931666-22-9" xmlns:ns2="http://www.w3.org/1999/xlink">', '')
WHERE noteContent LIKE '%<p xmlns="urn:isbn:1-931666-22-9" xmlns:ns2="http://www.w3.org/1999/xlink">%';

The AT never stored paragraph tags in the database before, so you'd definitely want to remove those in some way (although fixing it in the application would be best, of course).  I suppose if it had the closing tag it might export okay, but I wouldn't try to add those just for the sake of the exports, since you'll need to migrate the data.

Mark


From: archivesspace_users_group-bounces at lyralists.lyrasis.org [mailto:archivesspace_users_group-bounces at lyralists.lyrasis.org] On Behalf Of Kennedy, Nancy
Sent: Tuesday, February 02, 2016 1:02 PM
To: 'archivesspace_users_group at lyralists.lyrasis.org'
Subject: [Archivesspace_Users_Group] Archivists Toolkit incompatibility with Java 8 (AR-1157)

Hello all,
Have any other users implemented the latest AT version 16, for java8 compatibility, per https://archivesspace.atlassian.net/browse/AR-1157<https://urldefense.proofpoint.com/v2/url?u=https-3A__archivesspace.atlassian.net_browse_AR-2D1157&d=AwMFAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=RKhZyIOCP-rCH87AMz91_Q89CrLKSfiS9bo_ojn3T_4&s=4aOProrU86-3_tlu9ynrV2M5T41DrVQwN6bIr79XWDY&e=>?

While we work towards our ArchivesSpace migration, we need to be able to use the AT with java 8 to address security vulnerabilities. While the latest AT version 16 solves the ns2 namespace export issue, our EAD imports are not working correctly.

Upon EAD import, note fields all end up with extraneous "<p xmlns="urn:isbn:1-931666-22-9" xmlns:ns2="http://www.w3.org/1999/xlink">" at the start of each paragraph.  Note that there is no </p>, which seems to result in AT dropping this data during EAD export.  (AT exports these notes with empty paragraphs <p/>).  This starts to get very messy if notes are multi-paragraph or if any additional <title> and <emph> are involved.  Has anyone else seen this?

Importing:
 <acqinfo>
      <head>Provenance</head>
      <p>The Oscar Bluemner papers were donated in several installments from 1970 to 1985 by John
        Davis Hatch, an art historian and close friend of Bluemner.</p>
    </acqinfo>

                                Results in AT data field:
<p xmlns="urn:isbn:1-931666-22-9" xmlns:ns2="http://www.w3.org/1999/xlink<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_1999_xlink&d=AwMFAg&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=s7ciGQfUJeaV_ryx908hbeXDoU9aqDwDN0Z0VbfsJ3Y&m=RKhZyIOCP-rCH87AMz91_Q89CrLKSfiS9bo_ojn3T_4&s=bDiPBPnipPu8j-tTV-sktjwQnLZrqdBRUaI42yhJuEs&e=>">The Oscar Bluemner papers were donated in several installments from 1970 to 1985 by John Davis Hatch, an art historian and close friend of Bluemner.

Which then exports as:
<accessrestrict id="ref3">
            <head>Provenance</head>
            <p/>

Thanks for any insights -
Nancy


Nancy Kennedy
EAD Coordinator
Smithsonian Institution
kennedyn at si.edu<mailto:kennedyn at si.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20160203/0a41ac4e/attachment.html>


More information about the Archivesspace_Users_Group mailing list