Author: arkurth
Date: Fri Jan 30 18:15:35 2009
New Revision: 739365

URL: http://svn.apache.org/viewvc?rev=739365&view=rev
Log:
VCL-74
If a user has a null UID value, the default value was being set to -1. This 
caused the linux add user command to fail because -1 isn't a valid UID value. I 
changed utils.pm::get_request_info to set the default value to the user's ID 
instead of -1.

Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/utils.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/utils.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/utils.pm?rev=739365&r1=739364&r2=739365&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/utils.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/utils.pm Fri Jan 30 18:15:35 2009
@@ -6034,9 +6034,9 @@
                $request_info{user}{preferredname} = 
$request_info{user}{firstname};
        }
 
-       # Set the user's uid to -1 if it's NULL
+       # Set the user's uid to to the VCL user ID if it's NULL
        if (!defined($request_info{user}{uid}) || !$request_info{user}{uid}) {
-               $request_info{user}{uid} = -1;
+               $request_info{user}{uid} = $request_info{user}{id};
        }
 
        # Set the user's IMid to '' if it's NULL


Reply via email to