[NAS-2569] ViewerProxy not working Created: 24/Oct/16  Updated: 27/Oct/16  Resolved: 25/Oct/16

Status: Resolved
Project: NetarchiveSuite
Component/s: Viewerproxy
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Colin Rosenthal Assignee: Colin Rosenthal
Resolution: Fixed  
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: NAS 5.2
Verification:

Any test that uses Viewerproxy is a validation of this fix.


 Description   

In TEST1 I'm getting error messages from the ViewerProxy like

11:13:02.178 WARN  dk.netarkivet.viewerproxy.WebProxy.createErrorResponse - Exception for : http://www.kaarefc.dk/
dk.netarkivet.common.exceptions.IllegalState: Bad origin for URL 'http://www.kaarefc.dk/': '2-2-20161019120404770-00000-sb-test-har-001.statsbiblioteket.dk.warc.gz,13451,20161019120409200'
        at dk.netarkivet.common.distribute.arcrepository.ARCLookup.luceneLookUp(ARCLookup.java:228) ~[common-core-5.2-SNAPSHOT.jar:19d3ed88b19ead64a5b36386b68b28eb29a9319e]

According to the code, the "origin" string should only have two comma-separated elements - the file and the offset.



 Comments   
Comment by Colin Rosenthal [ 24/Oct/16 ]

It seems that the only problem is in one overly-specific check that looks for exactly two elements in this field. I have changed this in https://github.com/netarchivesuite/netarchivesuite/commit/79e57c77712a91ce55731084f279bfc22e7049bb and the hotfix seems to work.

Generated at Sat Apr 20 13:05:47 CEST 2024 using Jira 9.4.15#940015-sha1:bdaa9cbecfb6791ea579749728cab771f0dfe90b.