Hi

In what way do you experience that it doesn't work with Kallithea?

Kallithea implements a custom wrapper around hgweb. Mainly to provide integrated hosting with correct access control. It is a basic assumption that reads are with GET and writes are with POST.

Without being told more about how httppostargs works / fails (and without spending time investigating) I would assume that it works fine for users with write access to repositories.

A more fine grained separation would require some refactorings ... and a risk of getting it wrong and introducing security issues.

If I remember correctly, the Mercurial client also has a max limit of how large headers it will send. But mainly: For most web servers it is possible to adjust the header limit to work with most repositories. That is apparently also possible with IIS, even if that is one of your constraints. Does that not work for you? Else, I would suggest using another web server, preferably on unix.

/Mads



On 10/11/21 15:16, Ansis Māliņš wrote:
Hello. I would really like to use Kallithea, but there's a deal breaker: Kallithea does not support httppostargs=true, an almost undocumented setting that switches Mercurial to sending heads and largefile hashes as POST requests instead of in headers. I've looked at the source code, and it seems Kallithea implements it's own version of hgweb. How hard would it be to add support for httppostargs? I'm willing to put in the work if I receive some guidance. The extent of my Python experience is writing Mercurial hooks and simple Discord bots.

httppostargs:
https://www.mercurial-scm.org/wiki/HgWebInIisOnWindows#I.27m_getting_an_HTTP_400:_Bad_request_error._What.27s_going_on.3F

_______________________________________________
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general

_______________________________________________
kallithea-general mailing list
kallithea-general@sfconservancy.org
https://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Reply via email to