There is a site working in conjunction: Tomcat + JSF.

There is a page that converts the "text entered by the user" into:
quotes + "text entered by user" + quotes .

From everywhere, where there is no firewall, everything works without problems, but from work, where there is a firewall, when you enter the phrase " drop table ", an error crashes:

httpError: There was an error communicating with the server, status: 502


What can be connected with, because in the same google search engine, the phrase " drop table " is easily searched.

  • They say that the right question is half the answer. HTTP Code 502 reports that the problem is in the firewall, you write about it yourself. Accordingly, the question is not about JSF and Tomcat, but about network administration. Ask the system administrators at your job what is wrong with the "drop table" ... I suspect that it’s not even quotes, but the content of the phrase ... - bobzer
  • Then the counter question, why, for example, on the site sqlformat.org, you can freely enter this command? Why I thought about JSF, maybe some kind of handler is wrong or something else, because there are no problems on other sites. - ezhov_da
  • Well, seriously, ask admins that just guessing? Let the logs see what happens. Restrictions may not work on all sites, but according to some rules. Or maybe my guess about the firewall is altogether wrong (I would be sure of her loyalty, I could have designed it as an answer, and not as a comment) ... - bobzer
  • I understand you, thanks for the next clue, I will ask the admins. - ezhov_da

0