[Rt-commit] rt branch, psgi, updated. rt-3.9.4-210-g4677d47

Chia-liang Kao clkao at bestpractical.com
Tue Oct 19 20:39:49 EDT 2010


The branch, psgi has been updated
       via  4677d476e45db4c42ee4dbd0a4abf51be75f2c9c (commit)
       via  efe6f395dfdc38e0b8a79c496642c9a4ee9e236d (commit)
       via  42be2d45c1ec305a5c64e8d356ee1ffe33464d1b (commit)
       via  54f92bb793589e548a62e966a1ab483e538c90e8 (commit)
       via  db08f1c3e9a6d6fa3bd9fa36ac4fc653b5a5e6cb (commit)
       via  f5b88a43eb5f24ea49aa4d6665044bd3d786fe28 (commit)
       via  42a8eb9824b793e156aa1253545984ccfd5fedbd (commit)
       via  cacdb08301e7066210f55bc28131ef95966b5e05 (commit)
       via  eafebf68f3a94a1901527f97ef34f6548b4c5e25 (commit)
       via  3f5700a631e8c47b4bcf03b6292bc3c3a3ceeb30 (commit)
       via  ac8ab44111cb6a9695642eaa339390823f051c02 (commit)
      from  969ea9939dd47657e277b0689729c278ff5cc526 (commit)

Summary of changes:
 Makefile.in                                |   22 +++++++++++++++++-
 aclocal.m4                                 |    3 +-
 config.layout                              |   32 ++++++++++++++++++++++++++++
 configure.ac                               |    3 ++
 lib/RT/Action/CreateTickets.pm             |    4 +-
 lib/RT/Generated.pm.in                     |    2 +-
 lib/RT/Test.pm                             |   17 --------------
 lib/RT/Ticket_Overlay.pm                   |   12 +++++-----
 lib/RT/Transaction_Overlay.pm              |    6 ++--
 m4/rt_layout.m4                            |    3 +-
 share/html/Admin/CustomFields/Modify.html  |    2 +-
 share/html/Admin/CustomFields/Objects.html |    2 +-
 share/html/Search/Bulk.html                |    6 ++--
 share/html/Search/Elements/SelectChartType |    2 +-
 share/html/Ticket/ModifyPeople.html        |    4 +-
 t/web/attachment_encoding.t                |    2 -
 t/web/basic.t                              |    1 -
 t/web/cf_access.t                          |    1 -
 t/web/compilation_errors.t                 |    2 +-
 t/web/html_template.t                      |    1 -
 t/web/offline_utf8.t                       |   16 ++++++++++++++
 t/web/rest-non-ascii-subject.t             |    2 -
 t/web/ticket-create-utf8.t                 |    2 -
 23 files changed, 96 insertions(+), 51 deletions(-)

- Log -----------------------------------------------------------------
commit efe6f395dfdc38e0b8a79c496642c9a4ee9e236d
Author: Chia-liang Kao <clkao at bestpractical.com>
Date:   Wed Oct 20 09:36:03 2010 +0900

    SKIP_REQUEST_WORK_AROUND needed for offline_utf8 only now.

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index bdb04da..26168a7 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -58,23 +58,6 @@ use File::Temp qw(tempfile);
 use File::Path qw(mkpath);
 use File::Spec;
 
-our $SKIP_REQUEST_WORK_AROUND = 0;
-
-use HTTP::Request::Common ();
-use Hook::LexWrap;
-wrap 'HTTP::Request::Common::form_data',
-   post => sub {
-       return if $SKIP_REQUEST_WORK_AROUND;
-       my $data = $_[-1];
-       if (ref $data) {
-       $data->[0] = Encode::encode_utf8($data->[0]);
-       }
-       else {
-       $_[-1] = Encode::encode_utf8($_[-1]);
-       }
-   };
-
-
 our @EXPORT = qw(is_empty diag);
 our ($port, $dbname);
 our @SERVERS;
diff --git a/t/web/attachment_encoding.t b/t/web/attachment_encoding.t
index 85c5bbc..72c538a 100644
--- a/t/web/attachment_encoding.t
+++ b/t/web/attachment_encoding.t
@@ -8,8 +8,6 @@ use Encode;
 my ( $baseurl, $m ) = RT::Test->started_ok;
 ok $m->login, 'logged in as root';
 
-$RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
-
 use utf8;
 
 use File::Spec;
diff --git a/t/web/basic.t b/t/web/basic.t
index dafe6bf..39b0207 100644
--- a/t/web/basic.t
+++ b/t/web/basic.t
@@ -5,7 +5,6 @@ use warnings;
 use Encode;
 
 use RT::Test tests => 21;
-$RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
 
 my ($baseurl, $agent) = RT::Test->started_ok;
 
diff --git a/t/web/cf_access.t b/t/web/cf_access.t
index b870914..c159ebd 100644
--- a/t/web/cf_access.t
+++ b/t/web/cf_access.t
@@ -2,7 +2,6 @@
 use strict;
 
 use RT::Test tests => 26;
-$RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
 
 my ($baseurl, $m) = RT::Test->started_ok;
 
diff --git a/t/web/html_template.t b/t/web/html_template.t
index 0976847..02e9e99 100644
--- a/t/web/html_template.t
+++ b/t/web/html_template.t
@@ -8,7 +8,6 @@ use Encode;
 my ( $baseurl, $m ) = RT::Test->started_ok;
 ok $m->login, 'logged in as root';
 
-$RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
 RT::Test->set_mail_catcher;
 
 use utf8;
diff --git a/t/web/offline_utf8.t b/t/web/offline_utf8.t
index ce68ada..102e6a8 100644
--- a/t/web/offline_utf8.t
+++ b/t/web/offline_utf8.t
@@ -3,8 +3,24 @@ use strict;
 use warnings;
 
 use RT::Test tests => 7;
+
+use HTTP::Request::Common ();
+use Hook::LexWrap;
+wrap 'HTTP::Request::Common::form_data',
+   post => sub {
+       my $data = $_[-1];
+       if (ref $data) {
+       $data->[0] = Encode::encode_utf8($data->[0]);
+       }
+       else {
+       $_[-1] = Encode::encode_utf8($_[-1]);
+       }
+   };
+
+
 use File::Temp qw/tempfile/;
 use Encode;
+
 use RT::Ticket;
 my ( $fh, $file ) = tempfile;
 my $template = <<EOF;
diff --git a/t/web/rest-non-ascii-subject.t b/t/web/rest-non-ascii-subject.t
index 30d8298..3cffc7a 100644
--- a/t/web/rest-non-ascii-subject.t
+++ b/t/web/rest-non-ascii-subject.t
@@ -4,8 +4,6 @@ use strict;
 use warnings;
 use RT::Test tests => 7;
 
-local $RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
-
 use Encode;
 # \x{XX} where XX is less than 255 is not treated as unicode code point
 my $subject = Encode::decode('latin1', "Sujet accentu\x{e9}");
diff --git a/t/web/ticket-create-utf8.t b/t/web/ticket-create-utf8.t
index 461ebb8..b3d9d40 100644
--- a/t/web/ticket-create-utf8.t
+++ b/t/web/ticket-create-utf8.t
@@ -5,8 +5,6 @@ use warnings;
 
 use RT::Test tests => 41;
 
-$RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
-
 use Encode;
 
 my $ru_test = "\x{442}\x{435}\x{441}\x{442}";

commit 4677d476e45db4c42ee4dbd0a4abf51be75f2c9c
Merge: efe6f39 42be2d4
Author: Chia-liang Kao <clkao at bestpractical.com>
Date:   Wed Oct 20 09:39:09 2010 +0900

    Merge branch '3.9-trunk' into psgi


-----------------------------------------------------------------------


More information about the Rt-commit mailing list