[Rt-commit] rt branch, 4.2.7-releng, updated. rt-4.2.7rc1-1-g8298cfd

Alex Vandiver alexmv at bestpractical.com
Thu Sep 11 14:01:05 EDT 2014


The branch, 4.2.7-releng has been updated
       via  8298cfd4f2fba721317209aa5e9c0172f052df2d (commit)
      from  3d8a7a8914aeb4b26b825695270bacba014bb9bc (commit)

Summary of changes:
 t/web/attachment_dropping.t   | 1 +
 t/web/attachment_truncation.t | 1 +
 2 files changed, 2 insertions(+)

- Log -----------------------------------------------------------------
commit 8298cfd4f2fba721317209aa5e9c0172f052df2d
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Thu Sep 11 13:57:49 2014 -0400

    Set sessions to on-disk when MaxAttachmentSize is lowered, for Oracle
    
    Oracle uses the MaxAttachmentSize to also control the maximum piece of
    any BLOB column which is returned.  This hence also affects sessions,
    and causes the attachment truncation tests to fail because login does
    not succeed because the returned session data is truncated.
    
    Set the test to use on-disk sessions to work around the spurious logouts
    caused by a too-low MaxAttachmentSize on Oracle.

diff --git a/t/web/attachment_dropping.t b/t/web/attachment_dropping.t
index 94b0a43..466f7a0 100644
--- a/t/web/attachment_dropping.t
+++ b/t/web/attachment_dropping.t
@@ -11,6 +11,7 @@ close $fh;
 
 my $name = ( File::Spec->splitpath($path) )[2];
 
+RT->Config->Set( 'WebSessionClass', "Apache::Session::File");
 RT->Config->Set( 'MaxAttachmentSize', 1000 );
 RT->Config->Set( 'TruncateLongAttachments', '0' );
 RT->Config->Set( 'DropLongAttachments',     '1' );
diff --git a/t/web/attachment_truncation.t b/t/web/attachment_truncation.t
index 58c83a9..b60f29e 100644
--- a/t/web/attachment_truncation.t
+++ b/t/web/attachment_truncation.t
@@ -10,6 +10,7 @@ print $fh $content;
 close $fh;
 my $name = ( File::Spec->splitpath($path) )[2];
 
+RT->Config->Set( 'WebSessionClass', "Apache::Session::File");
 RT->Config->Set( 'MaxAttachmentSize', 1000 );
 RT->Config->Set( 'TruncateLongAttachments', '1' );
 

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


More information about the rt-commit mailing list