-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for skipping some cookies from saving in JwikiCookieJar #42
Comments
Hi @kb0, I'm not able to reproduce. Could you please share some sample code that demonstrates this bug? |
I'm not able reproduce it on pure MediaWiki installation, but it's "works" on MediaWiki + PageForms (at least mediawiki 1.31 + pageforms 4.5.1) https://github.com/kb0/fastily-jwiki-issues-42 - sample with MediaWiki docker container (1.31 + PageForms) |
Also included: * Remove CentralAuth support, hasn't worked for several years now
Thanks! I just pushed a commit to master that may address this issue. Could you please try it out and let me know if it works for you? |
No, the same problem. It's possible to filter out such cookies using CookiePolicy.shouldAccept:
May be make optional pass of CookieJar/CookiePolicy through Wiki.Builder() |
JwikiCookieJar save all new cookies without any filtering, but after each page edit - there is a new cookie like "mediawikiPostEditRevision98996=saved" (MediaWiki send post-edit cookie indicating the user just saved a particular revision).
After several calls of wiki.edit() - there are a lot of cookies "mediawikiPostEditRevision=saved" in each new http-request, so web server start to return - "400 Bad Request - request header or cookie too large".
it would be great if JwikiCookieJar skip such cookies from saving
The text was updated successfully, but these errors were encountered: