The method getUserAgent in CrawlOrder isn't correct.
The return UA string has toLowerCase in it. Mobile sites
wont recognize the crawlers UA then. The below code
corrects the problem
From CrawlOrder(Working):
public String getUserAgent(CrawlURI curi) {
if (caseFlattenedUserAgent == null) {
try {
caseFlattenedUserAgent = ((String)
httpHeaders.getAttribute(ATTR_USER_AGENT, curi));
} catch (AttributeNotFoundException e) {
logger.severe(e.getMessage());
}
}
return caseFlattenedUserAgent;
}
Regards,
Henrik Appelfeldt
System Specialist
3
Nobody/Anonymous ( nobody ) - 2005-02-01 13:31
5
Closed
Fixed
Nobody/Anonymous
None
None
Public
|
Date: 2007-03-14 00:20
|
|
Date: 2005-02-03 23:05 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2005-02-03 23:05 | stack-sf |
| status_id | Open | 2005-02-03 23:05 | stack-sf |
| resolution_id | None | 2005-02-03 23:05 | stack-sf |
| summary | User Agent | 2005-02-03 23:05 | stack-sf |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use