Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.4
-
Component/s: None
-
Labels:None
-
Environment:maven rc2
-
Number of attachments :
Description
The linkchecker flows MOVED_TEMPORARILY moved links but sikps MOVED_PERMANENTLY while there are as valid as MOVED_TEMPORARILY
example:
http://www.mmbase.org/license
resolution:
add
import org.apache.commons.httpclient.HttpStatus;
to the class imports
in HTTPLinkValidator at row 108 change the code to
if (gm.getStatusCode() == HttpStatus.SC_MOVED_TEMPORARILY || gm.getStatusCode() == HttpStatus.SC_MOVED_PERMANENTLY)
(and a small cleanup )
row 121
if (gm.getStatusCode() == HttpStatus.SC_OK)
IMHO is better to report MOVED PERMANENTLY as errors so the user can change the links.