[Rt-commit] rt branch, 4.4/sys-config-blocks-externalauth, created. rt-4.4.1-227-gf030a75
Dustin Collins
strega at bestpractical.com
Mon Jan 9 10:34:52 EST 2017
The branch, 4.4/sys-config-blocks-externalauth has been created
at f030a7554bb46ad3a12dc9ba6bfc33cd0b7e4439 (commit)
- Log -----------------------------------------------------------------
commit f030a7554bb46ad3a12dc9ba6bfc33cd0b7e4439
Author: Dustin Collins <strega at bestpractical.com>
Date: Sat Dec 31 18:45:21 2016 -0500
Fix ExternalAuth failure from viewing System Configuration
The source collection is wrapped then serialized. The process is then reveresed to ensure all contents are copies.
Fixes: I#32469
diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 737aa0b..486431a 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -1493,6 +1493,12 @@ sub GetObfuscated {
my $res = $self->Get(@_);
$res = $obfuscate->( $self, $res, $user );
+
+ #Serialized copy to dereference contents
+ my $wrapper = {'Content' => $res}; #Wrap to preserve type
+ $wrapper = JSON::decode_json(JSON::encode_json($wrapper));
+ $res = $wrapper->{'Content'}; #Unwrap
+
return $self->_ReturnValue( $res, $META{$name}->{'Type'} || 'SCALAR' );
}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list