eldur / jwbf

Java Wiki Bot Framework is a library to maintain Wikis like Wikipedia based on MediaWiki.
http://jwbf.sourceforge.net/
Apache License 2.0
78 stars 33 forks source link

Invalid cookie header warning #58

Open lorinczz opened 8 years ago

lorinczz commented 8 years ago

Running

new MediaWikiBot("https://en.wikipedia.org/w/").getArticle("42");

I started to get jan. 24, 2016 5:49:00 DU org.apache.http.client.protocol.ResponseProcessCookies processCookies WARNING: Invalid cookie header: "Set-Cookie: WMF-Last-Access=24-Jan-2016;Path=/;HttpOnly;Expires=Thu, 25 Feb 2016 12:00:00 GMT". Invalid 'expires' attribute: Thu, 25 Feb 2016 12:00:00 GMT warning. I am using 4.0.0-SNAPSHOT with MediaWiki 1.27.0-wmf.10

andreas-hartmann commented 7 years ago

This should fix it: https://stackoverflow.com/questions/36473478/fixing-httpclient-warning-invalid-expires-attribute-using-fluent-api however a different warning will appear which would require a code change. I created an issue about it, however the devs are unresponsive and I have no permission to contribute. I'd like to avoid having to fork for minor issues.