Ticket #1221 (new defect)

Opened 3 years ago

adminTop annotation links don't respect journal context

Reported by: russ Assigned to: rich
Priority: low Milestone:
Component: ambra Version: 0.9.1_rc2-SNAPSHOT
Keywords: Cc:
Blocking: Blocked By:

Description

adminTop.action lists all flagged annotations, no matter what article the annotation is in.

however, adminTop.action does have a journal context.

if you're in journal a, and you click on the "refers to" link for an annotation that's in journal b, you'll get a noSuchArticleId exception:

2009-03-23 16:39:52,379 ERROR ListReplyAction(PLoSMedicine)> Could not list all replies for root: info:doi/10.1371/annotation/4def6bf8-8a7f-4a35-b267-f6f2a5df3474 [TP-Processor8 org.topazproject.ambra.annotation.action.ListReplyAction]
org.topazproject.ambra.article.service.NoSuchArticleIdException: (id = 'info:doi/10.1371/journal.pone.0002661')

this is because the "refers to" URL has journal a's hostname.

we need to either restrict adminTop to annotations that belong to the journal, or create "refers to" URLs that provide the correct hostname.

Dependency Graph