Project

General

Profile

Actions

bug #4773

closed

task #4338: [MASTER] Handle abbreviated title and protected cache correctly in TaxEditor

Lampranthus throws IndexOutOfRange exception

Added by Andreas Müller almost 8 years ago. Updated over 1 year ago.

Status:
Worksforme
Priority:
Priority10
Category:
cdmlib
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:

Description

Opening Lampranthus in Caryophyllales results in an IndexOutOfRange exception.

Reason was: Aristanthus Schwantes had a "Generic" nom. ref. with a Journal as in-reference. The results in null when calling inRef.getNomenclaturalCitation(String).

Error was:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
                at java.lang.String.substring(Unknown Source)
                at eu.etaxonomy.cdm.strategy.cache.reference.NomRefDefaultCacheStrategyBase.replaceMicroRefToken(NomRefDefaultCacheStrategyBase.java:165)
                at eu.etaxonomy.cdm.strategy.cache.reference.NomRefDefaultCacheStrategyBase.getNomenclaturalCitation(NomRefDefaultCacheStrategyBase.java:151)
                at eu.etaxonomy.cdm.model.reference.Reference.getNomenclaturalCitation(Reference.java:1010)
                at eu.etaxonomy.cdm.strategy.cache.name.NonViralNameDefaultCacheStrategy.getTaggedFullTitle(NonViralNameDefaultCacheStrategy.java:449)
                at eu.etaxonomy.cdm.strategy.cache.name.NonViralNameDefaultCacheStrategy.getFullTitleCache(NonViralNameDefaultCacheStrategy.java:190)
                at eu.etaxonomy.cdm.strategy.cache.name.NonViralNameDefaultCacheStrategy.getFullTitleCache(NonViralNameDefaultCacheStrategy.java:201)
                at eu.etaxonomy.cdm.strategy.cache.name.NonViralNameDefaultCacheStrategy.getFullTitleCache(NonViralNameDefaultCacheStrategy.java:1)
                at eu.etaxonomy.cdm.model.name.NonViralName.generateFullTitle(NonViralName.java:719)
                at eu.etaxonomy.taxeditor.model.NameHelper.getDisplayNameWithRef(NameHelper.java:55)
                at eu.etaxonomy.taxeditor.editor.name.container.AbstractGroupedContainer.initTextViewer(AbstractGroupedContainer.java:289)
                at eu.etaxonomy.taxeditor.editor.name.container.SynonymContainer.initializeComposite(SynonymContainer.java:68)
...
Actions #1

Updated by Andreas Müller almost 8 years ago

  • Status changed from New to In Progress

partly fixed by: r23290. Only the exception is not shown anymore, but nom ref is still shown incorrectly for this combination.

Actions #2

Updated by Andreas Müller almost 8 years ago

  • Priority changed from Highest to Priority10
Actions #3

Updated by Andreas Müller over 7 years ago

  • Target version changed from cdmlib RELEASE 3.5.1 to cdmlib RELEASE 3.5.2
Actions #4

Updated by Andreas Müller about 7 years ago

  • Target version changed from cdmlib RELEASE 3.5.2 to Unassigned CDM tickets
Actions #5

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
  • Status changed from In Progress to Worksforme
  • Target version deleted (Unassigned CDM tickets)

The exception is not thrown anymore for such a combination and for the concrete taxon in caryo. Also the result looks ok though a generic reference should normally not have an in-ref journal.

Actions #6

Updated by Andreas Müller over 1 year ago

  • % Done changed from 0 to 100
  • Private changed from Yes to No
Actions

Also available in: Atom PDF