Hi, I’m creating MoinMoin->XWiki migrator and I’m issuing a lot of HTTP PUT requests. Sometimes it’s the same request sent many times (when I test conversion functions). Usually everything works but from time to time one random requests stops and I get
{
"code":412,
"contactEmail":null,
"description":"The precondition given in one or more of the request header fields evaluated to false when it was tested on the server",
"homeRef":"/",
"reasonPhrase":"Precondition Failed",
"uri":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.13"
}
every time I issue it. In the same time other requests, with the same headers but different URL work fine. Nothing useful in Tomcat’s logs.
And here is the most funny thing: when I recreated problematic request in Postman I’ve got the same error message. Then I submitted In Postman a page with empty content and it worked. After this I could submit the original page content and it worked and my migrator started working too. This is so strange. Any ideas what’s going on?
Best regards,
Seweryn Niemiec