smatin / smt2

Automatically exported from code.google.com/p/smt2
0 stars 0 forks source link

URL cut in half/incomplete during Process in store.php #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I have installed everything just fine. Had it all running on a different 
webserver. The recording and the playback works just fine.
2. I visit the page I want to track and its URL is something like 
www.mysite.com/shopv2.pl?aktion=produktansicht&FKM_ES_Artikelnummer=2242180&stat
=9901022421808 but the URL stored in the database is incomplete and looks like 
www.mysite.com/shopv2.pl?aktion=produktansicht  -> everything including the "&" 
has been cut away or probably has not been copied entirely
3. The Recording works fine, but the playback shows the wrong page, the cut 
away one of course.

So something is going wrong just before the data is submitted to the 
store.php-file as I believe. Where and when exactly is the url taken? That's 
not quite clear to me and maybe the key to my problem. 

Thanks in advance!

Original issue reported on code.google.com by mr.bearc...@googlemail.com on 17 Jun 2010 at 12:37

GoogleCodeExporter commented 9 years ago
The URL is retrieved in the record.js file.
It just reads the content of window.location.href and posts it to the store.php 
file.

I've tested it on other production servers and it seems to work fine.
You don't provide more information to reproduce the issue (browser+version, OS, 
etc.), so by now I can't help you further.

Original comment by luis.lei...@gmail.com on 17 Jun 2010 at 3:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi again, 

I found the key to my problem. In my situation window.location.href alone 
doesn't do the job. The linkage on this webserver is quite dynamic (I didn't 
code it, don't ask me anything specific about it:)) but encoding the URL does 
help to overcome the URL-cutting. So instead of url = window.location.href I 
wrote url = encodeURIComponent(window.location) in smt-record.min.js and the 
URL stored in MySQL now looks like the one the user has visited. 

It works!

Original comment by mr.bearc...@googlemail.com on 17 Jun 2010 at 8:48

GoogleCodeExporter commented 9 years ago
OK, I've committed these changes in the SVN.
Thank you for your feedback.

Original comment by luis.lei...@gmail.com on 17 Jun 2010 at 9:10

GoogleCodeExporter commented 9 years ago
Thank you for keeping up the good work! Thumbs up!

Original comment by mr.bearc...@googlemail.com on 18 Jun 2010 at 7:25