Skip to content

Commit

Permalink
Set sessions to on-disk when MaxAttachmentSize is lowered, for Oracle
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexmv committed Sep 11, 2014
1 parent 3d8a7a8 commit 8298cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions t/web/attachment_dropping.t
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
Expand Down
1 change: 1 addition & 0 deletions t/web/attachment_truncation.t
Original file line number Diff line number Diff line change
Expand Up @@ -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' );

Expand Down

0 comments on commit 8298cfd

Please sign in to comment.