MER-C / wiki-java

A MediaWiki bot framework in Java
GNU Affero General Public License v3.0
66 stars 58 forks source link

Make urlMaxLength configurable (and make wiki-java friendly to custom Mediawiki sites). #168

Closed Nirvanchik closed 5 years ago

Nirvanchik commented 5 years ago

URL_LENGTH_LIMIT is hardcoded with 8192 and I have to modify Wiki.java code to make it possible use wiki-java for my special installation of Mediawiki. That installation is on hosting where max url limit is 2048. So I would like to have something like this:

private int urlMaxLength = 8192;
public void setUrlMaxLength(int maxLength) {
    urlMaxLength = maxLength;
}
MER-C commented 5 years ago

I'm thinking of storing minor configuration variables like this via the Properties or Preferences mechanism. Do you have any preference as to which I should use?

MER-C commented 5 years ago

Looking at the problem further, are there any requests where this is still an issue? Lists of titles now get sent via HTTP POST. This configuration variable is no longer present in HEAD.

MER-C commented 5 years ago

Closing. Reopen if this is a problem in HEAD.

Nirvanchik commented 4 years ago

Sorry. Created this issue by mistake having older code in mind.