Still fighting...
I found AJAX Debugger for Chrome and I started to look for differences when submitting post between localhost and my LiteSpeed web server
Localhost, where post censoring works fine
Post without censored words
"Reply" button click
XHR Loaded (index.php - 200 OK - 176.3760000003458ms - 344B)
http://localhost/wbb/index.php?ajax-proxy/&t=53f066963672a3a1e6e9a48178e3ad…faceName=wcf%5Cdata%5CIMessageQuoteAction¶meters%5BparentObjectID%5D=1
XHR Data Object {startedDateTime: "2016-05-11T14:25:47.485Z", time: 176.3760000003458, request: Object, response: Object, cache: Object…}cache: Objectconnection: "37800"pageref: "page_4"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "[::1]"startedDateTime: "2016-05-11T14:25:47.485Z"time: 176.3760000003458timings: Object__proto__: Object
Response Object {actionName: "getRenderedQuotes", objectIDs: Array[0], returnValues: Object}actionName: "getRenderedQuotes"objectIDs: Array[0]returnValues: Object__proto__: Object
"Submit" button click
XHR Loaded (index.php - 200 OK - 1.4132689999996728s - 7.06KB)
http://localhost/wbb/index.php?ajax-proxy/&t=53f066963672a3a1e6e9a48178e3ad…ttp%3A%2F%2Flocalhost%2Fwbb%2Findex.php%3Fthread%2F1-test-cenzury%2F%23top
Time over 1000ms
XHR Data Object {startedDateTime: "2016-05-11T14:25:51.984Z", time: 1413.2689999996728, request: Object, response: Object, cache: Object…}cache: Objectconnection: "37800"pageref: "page_4"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "[::1]"startedDateTime: "2016-05-11T14:25:51.984Z"time: 1413.2689999996728timings: Object__proto__: Object
Response Object {actionName: "quickReply", objectIDs: Array[0], returnValues: Object}actionName: "quickReply"objectIDs: Array[0]returnValues: Object__proto__: Object
XHR Loaded (index.php - 200 OK - 148.76800000001822ms - 273B)
http://localhost/wbb/index.php?message-quote/&t=53f066963672a3a1e6e9a48178e…me=count&getFullQuoteObjectIDs=true&objectTypes%5B%5D=com.woltlab.wbb.post
XHR Data Object {startedDateTime: "2016-05-11T14:25:53.447Z", time: 148.76800000001822, request: Object, response: Object, cache: Object…}cache: Objectconnection: "37800"pageref: "page_4"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "[::1]"startedDateTime: "2016-05-11T14:25:53.447Z"time: 148.76800000001822timings: Object__proto__: Object
Response Object {count: 0}
Post with censored word
"Reply" button click
XHR Loaded (index.php - 200 OK - 165.3200000000652ms - 344B)
http://localhost/wbb/index.php?ajax-proxy/&t=53f066963672a3a1e6e9a48178e3ad…faceName=wcf%5Cdata%5CIMessageQuoteAction¶meters%5BparentObjectID%5D=1
XHR Data Object {startedDateTime: "2016-05-11T14:26:07.650Z", time: 165.3200000000652, request: Object, response: Object, cache: Object…}cache: Objectconnection: "37814"pageref: "page_4"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "[::1]"startedDateTime: "2016-05-11T14:26:07.650Z"time: 165.3200000000652timings: Object__proto__: Object
Response Object {actionName: "getRenderedQuotes", objectIDs: Array[0], returnValues: Object}actionName: "getRenderedQuotes"objectIDs: Array[0]returnValues: Object__proto__: Object
"Submit" button click
POST http://localhost/wbb/index.php?ajax-proxy/& 431 (Bad Parameters)
XHR Loaded (index.php - 431 Bad Parameters - 187.26599999990867ms - 494B)
http://localhost/wbb/index.php?ajax-proxy/&t=53f066963672a3a1e6e9a48178e3ad…ttp%3A%2F%2Flocalhost%2Fwbb%2Findex.php%3Fthread%2F1-test-cenzury%2F%23top
XHR Data Object {startedDateTime: "2016-05-11T14:26:12.734Z", time: 187.26599999990867, request: Object, response: Object, cache: Object…}cache: Objectconnection: "37814"pageref: "page_4"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "[::1]"startedDateTime: "2016-05-11T14:26:12.734Z"time: 187.26599999990867timings: Object__proto__: Object
Response Object {code: 412, message: "Parameter “message” is missing or invalid.", returnValues: Object, exceptionID: ""}code: 412exceptionID: ""message: "Parameter “message” is missing or invalid."returnValues: Object__proto__: Object
Alles anzeigen
Important thing: post censoring is working with 431 error, probably this is critical
Me web server where post censoring is failing
Post without censored words
"Reply" button click
XHR Loaded (index.php - 200 OK - 59.645000000273285ms - 267B)
http://forum.domain.com/wbb/index.php?ajax-proxy/&t=35efb7213fcdd476f19df…Name=wcf%5Cdata%5CIMessageQuoteAction¶meters%5BparentObjectID%5D=15259
XHR Data Object {startedDateTime: "2016-05-11T14:32:37.128Z", time: 59.645000000273285, request: Object, response: Object, cache: Object…}cache: Objectconnection: "38276"pageref: "page_1"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "109.95.152.144"startedDateTime: "2016-05-11T14:32:37.128Z"time: 59.645000000273285timings: Object__proto__: Object
Response Object {actionName: "getRenderedQuotes", objectIDs: Array[0], returnValues: Object}actionName: "getRenderedQuotes"objectIDs: Array[0]returnValues: Object__proto__: Object
"Submit" button click
XHR Loaded (index.php - 200 OK - 160.57699999964825ms - 7.531KB)
http://forum.domain.com/wbb/index.php?ajax-proxy/&t=35efb7213fcdd476f19df…pl%2Fwbb%2Findex.php%3Fthread%2F15259-test-123%2F%26postID%3D1120103%23top
XHR Data Object {startedDateTime: "2016-05-11T14:32:40.834Z", time: 160.57699999964825, request: Object, response: Object, cache: Object…}cache: Objectconnection: "38342"pageref: "page_1"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "109.95.152.144"startedDateTime: "2016-05-11T14:32:40.834Z"time: 160.57699999964825timings: Object__proto__: Object
Response Object {actionName: "quickReply", objectIDs: Array[0], returnValues: Object}actionName: "quickReply"objectIDs: Array[0]returnValues: Object__proto__: Object
XHR Loaded (index.php - 200 OK - 95.4940000001443ms - 197B)
http://forum.domain.com/wbb/index.php?message-quote/&t=35efb7213fcdd476f1…me=count&getFullQuoteObjectIDs=true&objectTypes%5B%5D=com.woltlab.wbb.post
XHR Data Object {startedDateTime: "2016-05-11T14:32:41.036Z", time: 95.4940000001443, request: Object, response: Object, cache: Object…}cache: Objectconnection: "38348"pageref: "page_1"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "109.95.152.144"startedDateTime: "2016-05-11T14:32:41.036Z"time: 95.4940000001443timings: Object__proto__: Object
Response Object {count: 0}
Post with censored word
"Reply" button click
XHR Loaded (index.php - 200 OK - 86.54999999998836ms - 267B)
http://forum.domain.com/wbb/index.php?ajax-proxy/&t=35efb7213fcdd476f19df…Name=wcf%5Cdata%5CIMessageQuoteAction¶meters%5BparentObjectID%5D=15259
XHR Data Object {startedDateTime: "2016-05-11T14:32:44.247Z", time: 86.54999999998836, request: Object, response: Object, cache: Object…}cache: Objectconnection: "38355"pageref: "page_1"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "109.95.152.144"startedDateTime: "2016-05-11T14:32:44.247Z"time: 86.54999999998836timings: Object__proto__: Object
Response Object {actionName: "getRenderedQuotes", objectIDs: Array[0], returnValues: Object}actionName: "getRenderedQuotes"objectIDs: Array[0]returnValues: Object__proto__: Object
"Submit" button click
XHR Loaded (index.php - 200 OK - 145.926000000145ms - 497B)
http://forum.domain.com/wbb/index.php?ajax-proxy/&t=35efb7213fcdd476f19df…pl%2Fwbb%2Findex.php%3Fthread%2F15259-test-123%2F%26postID%3D1120103%23top
XHR Data Object {startedDateTime: "2016-05-11T14:32:49.227Z", time: 145.926000000145, request: Object, response: Object, cache: Object…}cache: Objectconnection: "38363"pageref: "page_1"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "109.95.152.144"startedDateTime: "2016-05-11T14:32:49.227Z"time: 145.926000000145timings: Object__proto__: Object
Response Object {code: 412, message: "Parametr „message” jest brakujący lub błędny.", returnValues: Object, exceptionID: ""}code: 412exceptionID: ""message: "Parametr „message” jest brakujący lub błędny."returnValues: Object__proto__: Object
XHR Loaded (index.php - 200 OK - 78.45300000008137ms - 197B)
http://forum.domain.com/wbb/index.php?message-quote/&t=35efb7213fcdd476f1…me=count&getFullQuoteObjectIDs=true&objectTypes%5B%5D=com.woltlab.wbb.post
XHR Data Object {startedDateTime: "2016-05-11T14:32:49.380Z", time: 78.45300000008137, request: Object, response: Object, cache: Object…}cache: Objectconnection: "38369"pageref: "page_1"request: Objectresponse: ObjectresponseContent: ObjectserverIPAddress: "109.95.152.144"startedDateTime: "2016-05-11T14:32:49.380Z"time: 78.45300000008137timings: Object__proto__: Object
Response Object {count: 0}
Alles anzeigen
Important consideration: there is no POST error - no 431 error, response is 200 OK, despite error 412 in Response Object
Thus it looks like AJAX that error is not catched and script goes at it is OK
I think that because error 431 is not triggered (instead 200 OK), script is going further. Without stopping it - post is going through WBB.min.js to part:
this._successMessageNonVisible = 'wbb.post.moderation.redirect';
Message is not visible, so it shows wbb.post.moderation.redirect (exactly: Your post requires manual approval and will not be displayed until then.)
This 431 error whould be triggered from wcf\lib\system\exception\AJAXException.class.php
Somehow it is not generated.
Question is why it doesn't work, what can block it, how to change configuration on web server or fix this somehow.