I don’t know if this is the right forum for this kind of problem - if it is not, please point me to the right one.
I have installed a Yii application for a typical CRUD application for a client. This client reports me that he is facing 403 errors from time to time. I took a look into the log files and can confirm this:
This is the access.log sequence when everything goes ok:
213.33.23.138 - - [29/Mar/2011:11:40:00 +0200] "POST /index.php/behandlung/create?tid=104 HTTP/1.1" 302 23 "http://tierarztpraxis-guessing.at/index.php/behandlung/create?tid=104" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.18) Gecko/20110319 Firefox/3.5.18"
213.33.23.138 - - [29/Mar/2011:11:40:00 +0200] "GET /index.php/tier/104 HTTP/1.1" 200 2849 "http://tierarztpraxis-guessing.at/index.php/behandlung/create?tid=104" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.18) Gecko/20110319 Firefox/3.5.18"
So, after posting the form data of model “behandlung”, I get redirected (302) to the read-only page where the data is displayed. That’s the way it should be.
But sometimes (about 50% of the time!) this happens instead:
213.33.23.138 - - [29/Mar/2011:11:37:04 +0200] "POST /index.php/behandlung/create?tid=56 HTTP/1.1" 403 196 "http://tierarztpraxis-guessing.at/index.php/behandlung/create?tid=56" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.18) Gecko/20110319 Firefox/3.5.18"
A 403 error on posting!
A few more points:
-
The client claims that although the Internet connection may be fragile from time to time (some kind of ADSL), it is just ONE model which has this problems: the model "behandlung", other models seem to have no problem.
-
I am not able to reproduce the problem from my place (solid Internet connection).
-
If the user posts the same form again (after entering the same data once again), it often works.
My question:
I am confused about the 403 error. I would suspect that if the client is facing connectivity problems, then ANY page would fail to load from time to time. But the request arrives at the Apache server and I can see the 403 in the logs. I do not understand this. In case of session timeout OSLT, I would be redirected to the login page, but no 403. So what does that mean?
Does anybody have ideas what could be happening? How can I diagnose further? I disabled the UrlManager to see if it maybe makes things worse (just a vague idea).