Project

General

Profile

bug #8743

BioCASE specimen import: ignore invalid biocase accesspoint urls

Added by Andreas Kohlbecker 7 months ago.

Status:
New
Priority:
New
Assignee:
Category:
taxeditor
Target version:
Start date:
12/04/2019
Due date:
% Done:

0%

Severity:
normal
Found in Version:
Tags:

Description

This is especially important for the DNA import. If an URL is specified which is not pointing to a BioCase provider the import tries to consumer the response nevertheless.
This leads to SAXParserException like in this example where a html page was returned:

Exception during parsing of nodeList!
The element type "link" must be terminated by the matching end-tag "</link>".
org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 3; The element type "link" must be terminated by the matching end-tag "</link>".
        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
        at eu.etaxonomy.cdm.io.specimen.abcd206.in.AbcdParseUtility.parseUnitsNodeList(AbcdParseUtility.java:151)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)