V
Venkatesh
Hi All,
We have a retail site hosted on one of our servers. The context path
of site is /retail, and the main servlet for us is dispatch.do. So
basically our site URL is of the form http://www.host.com/retail/dispatch.do.
This will take the visitor to main page of the site. One can also jump
to an arbitrary page in our site by supplying additional query
parameters in the URL directly. Some thing like
http://www.host.com/retail/dispatch.do?currentState=Options&st=....
where st is a symbolic state token that we'll be processing
internally. Thus, the resulting page rendered after processing request
parameters need not be the main page of the site. This is working
perfect in our testing environment, but on production site we are
facing one weired issue:
Our html pages have reference to javascript files in the form of
<script language="JavaScript" src="js/vehicleimage.js"></script>. and
strangely for some visitors (~5%), these javascript files are getting
downloaded using a GET request of the form shown below:
GET /retail/dispatch.do?
&foldedTablesList=&st=1%7C4B7E4F04905B0110DF8C500FE0190000%7C1172018077588%7C18%7CChevrolet
%2499502%7Cfalse%24false%7Cfalse%7Cfalse%7Ctrue%7C2007uva_in
%7Cexi4.07%7C%7Ek8/js/vehicleimage.js
The above GET request is present in our apache logs. As a result of
above, our servlet is getting executed while downloading javascript
file.
More stranger is the fact that the above URL is malformed and request
parameters present in above URL are incomplete, and hence our servlet
is throwing exceptions during it's execution.
Does anybody have an idea as to why this is happening?
Also, when we put references to javascript files in the form <script
language="JavaScript" src="js/vehicleimage.js"></script>, doesn't it
get translated to http://www.host.com/retail/js/vehicleimage.js ???
Thank you,
Venkatesh
We have a retail site hosted on one of our servers. The context path
of site is /retail, and the main servlet for us is dispatch.do. So
basically our site URL is of the form http://www.host.com/retail/dispatch.do.
This will take the visitor to main page of the site. One can also jump
to an arbitrary page in our site by supplying additional query
parameters in the URL directly. Some thing like
http://www.host.com/retail/dispatch.do?currentState=Options&st=....
where st is a symbolic state token that we'll be processing
internally. Thus, the resulting page rendered after processing request
parameters need not be the main page of the site. This is working
perfect in our testing environment, but on production site we are
facing one weired issue:
Our html pages have reference to javascript files in the form of
<script language="JavaScript" src="js/vehicleimage.js"></script>. and
strangely for some visitors (~5%), these javascript files are getting
downloaded using a GET request of the form shown below:
GET /retail/dispatch.do?
&foldedTablesList=&st=1%7C4B7E4F04905B0110DF8C500FE0190000%7C1172018077588%7C18%7CChevrolet
%2499502%7Cfalse%24false%7Cfalse%7Cfalse%7Ctrue%7C2007uva_in
%7Cexi4.07%7C%7Ek8/js/vehicleimage.js
The above GET request is present in our apache logs. As a result of
above, our servlet is getting executed while downloading javascript
file.
More stranger is the fact that the above URL is malformed and request
parameters present in above URL are incomplete, and hence our servlet
is throwing exceptions during it's execution.
Does anybody have an idea as to why this is happening?
Also, when we put references to javascript files in the form <script
language="JavaScript" src="js/vehicleimage.js"></script>, doesn't it
get translated to http://www.host.com/retail/js/vehicleimage.js ???
Thank you,
Venkatesh