[Catalyst] Hops sample app - IE ignoring 302 Location response?
Peter Edwards
peterdragon at users.sourceforge.net
Wed Jan 11 22:19:38 CET 2006
I've been playing with the Hops sample application and hit a problem with
the redirect. This comes after editing a record and clicking Edit to save
the changes. It should do path "beer/do_edit/2" then redirect to
"beer/view/2". The debug shows Catalyst doing this and using the perl
debugger the headers seem set up okay.
However, instead of the redirect I get a "The page cannot be displayed"
error screen showing an address of
"http://centos41.dragonstaff.local:3000/pub/do_edit/1" and with page
properties showing a path of
"res://C:\WINDOWS\system32\shdoclc.dll/dnserror.htm#http://centos41.dragonst
aff.local:3000/pub/do_edit/1".
It's only on the do_edit transaction. List, save, page forward/back all work
okay.
Any ideas?
Client is Internet Explorer on Windows XP, server is Redhat Linux (Centos
4.1) running Catalyst 5.61 and bundle Task::Catalyst 1.30.
Below is the script/hops_server.pl debug output for the edit and save
transactions.
Thanks,
Peter
<snippety>
Use of uninitialized value in substitution (s///) at
/usr/lib/perl5/site_perl/5.8.5/HTML/Element.pm line 1729.
Use of uninitialized value in join or string at
/usr/lib/perl5/site_perl/5.8.5/HTML/Element.pm line 1723.
[Wed Jan 11 22:55:47 2006] [catalyst] [debug]
**********************************
[Wed Jan 11 22:55:47 2006] [catalyst] [debug] * Request 3 (0.188/s) [9199]
[Wed Jan 11 22:55:47 2006] [catalyst] [debug]
**********************************
[Wed Jan 11 22:55:47 2006] [catalyst] [debug] "GET" request for
"beer/edit/2" from "192.168.1.101"
[Wed Jan 11 22:55:47 2006] [catalyst] [debug] Arguments are "beer/edit/2"
[Wed Jan 11 22:55:47 2006] [catalyst] [debug] Rendering template "edit"
[Wed Jan 11 22:55:47 2006] [catalyst] [info] Request took 0.053923s
(18.545/s)
.------------------------------------------------------------------+--------
---.
| Action | Time
|
+------------------------------------------------------------------+--------
---+
| -> Hops::C::CRUD->process |
0.003357s |
| /default |
0.004361s |
| -> Hops::V::TT->process |
0.039408s |
| /end |
0.039948s |
'------------------------------------------------------------------+--------
---'
[Wed Jan 11 22:55:51 2006] [catalyst] [debug]
**********************************
[Wed Jan 11 22:55:51 2006] [catalyst] [debug] * Request 4 (0.200/s) [9199]
[Wed Jan 11 22:55:51 2006] [catalyst] [debug]
**********************************
[Wed Jan 11 22:55:51 2006] [catalyst] [debug] Body Parameters are:
.---------------------------------------+-----------------------------------
---.
| Key | Value
|
+---------------------------------------+-----------------------------------
---+
| abv | 4.2
|
| brewery | 2
|
| name | Kupecheskoye
|
| notes |
|
| price | 1.20
|
| score | 4
|
| style | 1
|
| url |
|
'---------------------------------------+-----------------------------------
---'
[Wed Jan 11 22:55:51 2006] [catalyst] [debug] "POST" request for
"beer/do_edit/2" from "192.168.1.101"
[Wed Jan 11 22:55:51 2006] [catalyst] [debug] Arguments are "beer/do_edit/2"
[Wed Jan 11 22:55:51 2006] [catalyst] [debug] Redirecting to
"http://centos41.dragonstaff.local:3000/beer/view/2"
[Wed Jan 11 22:55:51 2006] [catalyst] [info] Request took 0.022935s
(43.601/s)
.------------------------------------------------------------------+--------
---.
| Action | Time
|
+------------------------------------------------------------------+--------
---+
| -> Hops::C::CRUD->process |
0.012293s |
| /default |
0.013233s |
| /end |
0.000044s |
'------------------------------------------------------------------+--------
---'
More information about the Catalyst
mailing list