[Catalyst] A very strange question,please help me

Cookie xiaoquqi at gmail.com
Mon Apr 9 12:27:45 GMT 2007


>
> the same code(example in CPAN) when I run the program(login part,post
> username and password to server) in the windows,it can normally show to
> me,but when I run the program in a Linux server,the form will post to the
> server twice.It's very odd.I don't know where the reason is?Please help
> me.
>
> [debug] Debug messages enabled
> [debug] Loaded plugins:
>
> .------------------------------------------------------------------------=
----.
> | Catalyst::Plugin::Authentication  0.09
> |
> |
> Catalyst::Plugin::Authentication::Credential::Password                   =
  |
> | Catalyst::Plugin::Authentication::Store::DBIC  0.07
> |
> | Catalyst::Plugin::Authorization::ACL  0.08
> |
> | Catalyst::Plugin::Authorization::Roles  0.05
> |
> | Catalyst::Plugin::ConfigLoader  0.13
> |
> | Catalyst::Plugin::HTML::Widget  1.1
> |
> | Catalyst::Plugin::Session  0.14
> |
> | Catalyst::Plugin::Session::State::Cookie  0.06
> |
> | Catalyst::Plugin::Session::Store::FastMmap  0.02
> |
> | Catalyst::Plugin::StackTrace  0.06
> |
> | Catalyst::Plugin::Static::Simple  0.15
> |
> '------------------------------------------------------------------------=
----'
>
>
> [debug] Loaded dispatcher "Catalyst::Dispatcher"
> [debug] Loaded engine "Catalyst::Engine::HTTP"
> [debug] Found home "/home/nwr748/bin/MyApp"
> [debug] Loaded Config "/home/nwr748/bin/MyApp/myapp.yml"
> [debug] Loaded components:
>
> .-----------------------------------------------------------------+------=
----.
> | Class                                                           |
> Type     |
> +-----------------------------------------------------------------+------=
----+
>
> | MyApp::Controller::Books                                        |
> instance |
> | MyApp::Controller::Login                                        |
> instance |
> | MyApp::Controller::Logout                                       |
> instance |
> | MyApp::Controller::Root                                         |
> instance |
> | MyApp::Model::MyAppDB                                           |
> instance |
> | MyApp::Model::MyAppDB::Author                                   |
> class    |
> | MyApp::Model::MyAppDB::Book                                     |
> class    |
> | MyApp::Model::MyAppDB::BookAuthor                               |
> class    |
> | MyApp::Model::MyAppDB::Role                                     |
> class    |
> | MyApp::Model::MyAppDB::User                                     |
> class    |
> | MyApp::Model::MyAppDB::UserRole                                 |
> class    |
> | MyApp::View::TT                                                 |
> instance |
>
> '-----------------------------------------------------------------+------=
----'
>
> [debug] Loaded Private actions:
>
> .----------------------+--------------------------------------+----------=
----.
> | Private              | Class                                |
> Method       |
> +----------------------+--------------------------------------+----------=
----+
>
> | /default             | MyApp::Controller::Root              |
> default      |
> | /end                 | MyApp::Controller::Root              |
> end          |
> | /auto                | MyApp::Controller::Root              |
> auto         |
> | /logout/index        | MyApp::Controller::Logout            |
> index        |
> | /login/index         | MyApp::Controller::Login             |
> index        |
> | /books/url_create    | MyApp::Controller::Books             |
> url_create   |
> | /books/form_create_- | MyApp::Controller::Books             |
> form_create- |
> | do                   |                                      |
> _do          |
> | /books/hw_create     | MyApp::Controller::Books             |
> hw_create    |
> | /books/access_denied | MyApp::Controller::Books             |
> access_deni- |
> |                      |                                      |
> ed           |
> | /books/form_create   | MyApp::Controller::Books             |
> form_create  |
> | /books/index         | MyApp::Controller::Books             |
> index        |
> | /books/list_author   | MyApp::Controller::Books             |
> list_author  |
> | /books/delete        | MyApp::Controller::Books             |
> delete       |
> | /books/hw_create_do  | MyApp::Controller::Books             |
> hw_create_do |
> | /books/list          | MyApp::Controller::Books             |
> list         |
> '----------------------+--------------------------------------+----------=
----'
>
>
> [debug] Loaded Path actions:
>
> .-------------------------------------+----------------------------------=
----.
> | Path                                |
> Private                              |
> +-------------------------------------+----------------------------------=
----+
>
> | /books/delete                       |
> /books/delete                        |
> | /books/form_create                  |
> /books/form_create                   |
> | /books/form_create_do               |
> /books/form_create_do                |
> | /books/hw_create                    |
> /books/hw_create                     |
> | /books/hw_create_do                 |
> /books/hw_create_do                  |
> | /books/list                         |
> /books/list                          |
> | /books/list_author                  |
> /books/list_author                   |
> | /books/url_create                   |
> /books/url_create                    |
> '-------------------------------------+----------------------------------=
----'
>
>
> [info] MyApp powered by Catalyst 5.7006
> You can connect to your server at http://ct460x01.corp.mot.com:3001
> [debug] Adding ACL rule from /home/nwr748/bin/MyApp/script/../lib/MyApp.pm
> line 52 to the action /books/form_create with sort index 0
> [debug] Adding ACL rule from /home/nwr748/bin/MyApp/script/../lib/MyApp.pm
> line 56 to the action /books/form_create_do with sort index 0
> [debug] Adding ACL rule from /home/nwr748/bin/MyApp/script/../lib/MyApp.pm
> line 60 to the action /books/delete with sort index 0
> [info] *** Request 1 (0.333/s) [13812] [Mon Apr  9 16:45:02 2007] ***
> [debug] "GET" request for "/" from " 10.193.48.149"
> [debug] ***Root::auto User not found, forwarding to /login
> [debug] Redirecting to " http://ct460x01.corp.mot.com:3001/login"
> [info] Request took 0.015458s (64.691/s)
> .----------------------------------------------------------------+-------=
----.
>
> | Action                                                         |
> Time      |
>
> +----------------------------------------------------------------+-------=
----+
> | /auto                                                          |
> 0.001486s |
> | /end                                                           |
> 0.000155s |
>
> '----------------------------------------------------------------+-------=
----'
>
> [info] *** Request 2 (0.667/s) [13812] [Mon Apr  9 16:45:02 2007] ***
> [debug] "GET" request for "login" from " 10.193.48.149"
> [debug] Path is "login"
> [debug] Rendering template "login.tt2"
> [debug] Applying HTML page layout wrappers to login.tt2
> [info] Request took 0.067363s (14.845/s)
> .----------------------------------------------------------------+-------=
----.
>
> | Action                                                         |
> Time      |
> +----------------------------------------------------------------+-------=
----+
>
> | /auto                                                          |
> 0.000148s |
> | /login/index                                                   |
> 0.000064s |
> | /end                                                           |
> 0.056767s |
> |  -> MyApp::View::TT->process                                   |
> 0.055196s |
>
> '----------------------------------------------------------------+-------=
----'
>
> SELECT me.id, me.username, me.password, me.email_address, me.first_name,
> me.last_name FROM users me WHERE ( username =3D ? ): 'test01'
> [info] *** Request 3 (0.375/s) [13812] [Mon Apr  9 16:45:07 2007] ***
> [debug] Body Parameters are:
>
> .-------------------------------------+----------------------------------=
----.
> | Parameter                           |
> Value                                |
> +-------------------------------------+----------------------------------=
----+
>
> | password                            |
> mypass                               |
> | submit                              |
> Submit                               |
> | username                            |
> test01                               |
>
> '-------------------------------------+----------------------------------=
----'
> [debug] "POST" request for "login" from " 10.193.48.149"
> [debug] Path is "login"
> [debug] Created session "958ce0b0c51d9c3af6ca771db92f54f104e6ca8d"
> [debug] Successfully authenticated user 'test01'.
> [debug] Redirecting to " http://ct460x01.corp.mot.com:3001/books/list "
> [info] Request took 1.804952s (0.554/s)
>
> .----------------------------------------------------------------+-------=
----.
> | Action                                                         |
> Time      |
>
> +----------------------------------------------------------------+-------=
----+
> | /auto                                                          |
> 0.000155s |
> | /login/index                                                   |
> 1.786962s |
> | /end                                                           |
> 0.000163s |
>
> '----------------------------------------------------------------+-------=
----'
>
> SELECT me.id, me.username, me.password, me.email_address, me.first_name,
> me.last_name FROM users me WHERE ( username =3D ? ): 'test01'
> [info] *** Request 4 (0.400/s) [13812] [Mon Apr  9 16:45:09 2007] ***
> [debug] Body Parameters are:
>
> .-------------------------------------+----------------------------------=
----.
> | Parameter                           |
> Value                                |
> +-------------------------------------+----------------------------------=
----+
>
> | password                            |
> mypass                               |
> | submit                              |
> Submit                               |
> | username                            |
> test01                               |
>
> '-------------------------------------+----------------------------------=
----'
> [debug] "POST" request for "login" from " 10.193.48.149"
> [debug] Path is "login"
> [debug] Created session "f480a7576aeab7fb0e2aa0df698ee8ed1b22f3eb"
> [debug] Successfully authenticated user 'test01'.
> [debug] Redirecting to " http://ct460x01.corp.mot.com:3001/books/list "
> [info] Request took 0.524534s (1.906/s)
>
> .----------------------------------------------------------------+-------=
----.
> | Action                                                         |
> Time      |
>
> +----------------------------------------------------------------+-------=
----+
> | /auto                                                          |
> 0.000154s |
> | /login/index                                                   |
> 0.507086s |
> | /end                                                           |
> 0.000129s |
>
> '----------------------------------------------------------------+-------=
----'
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070409/6c13c=
1d0/attachment-0001.htm


More information about the Catalyst mailing list