Problem Note 67405: The sas-admin CLI plug-in for the transfer service omits the slash at the end of the command when it promotes rules
When you promote rules that contain a slash at the end using the sas-admin command-line interface (CLI), the slash is missing after import.
For example, when you execute the sas-admin command as shown below to check the imported rule for id=6e966869-a463-4e96-8270-2077557c54f8, the slash is omitted:
# Define our environment
export SAS_ADMIN=/opt/sas/viya/home/bin/sas-admin
id=6e966869-a463-4e96-8270-2077557c54f8
$SAS_ADMIN authorization show-rule --details --id $id
Id 6e966869-a463-4e96-8270-2077557c54f8
ObjectUri /SASEnvironmentManager
MediaType
Principal
PrincipalType authenticatedUsers
Type grant
Permissions [read]
Condition
ContainerUri
Filter
Reason
Description Allow access to an application.
Version 10
CreatedBy sas.SASEnvironmentManager
CreatedTimestamp
ModifiedBy sasadm
ModifiedTimestamp 2020-10-07T10:12:31.843Z
Workaround
You must manually add the slash as in the following example:
$SAS_ADMIN authorization update-rule --id $id --object-uri /SASEnvironmentManager/
Id 6e966869-a463-4e96-8270-2077557c54f8
ObjectUri /SASEnvironmentManager/
Principal
PrincipalType authenticatedUsers
Type grant
Permissions [read]
The rule has been modified.
$SAS_ADMIN authorization show-rule --details --id $id
Id 6e966869-a463-4e96-8270-2077557c54f8
ObjectUri /SASEnvironmentManager/
MediaType
Principal
PrincipalType authenticatedUsers
Type grant
Permissions [read]
Condition
ContainerUri
Filter
Reason
Description Allow access to an application.
Version 10
CreatedBy sas.SASEnvironmentManager
CreatedTimestamp
ModifiedBy sasadm
ModifiedTimestamp 2020-10-07T10:31:58.454Z
Click the Hot Fix tab in this note for a link to instructions about accessing and applying the software update.
Operating System and Release Information
SAS System | SAS Viya | Microsoft Windows 8 Pro 32-bit | 3.4 | | Viya | |
Microsoft Windows 8 Pro x64 | 3.4 | | Viya | |
Microsoft Windows 8.1 Enterprise 32-bit | 3.4 | | Viya | |
Microsoft Windows 8.1 Enterprise x64 | 3.4 | | Viya | |
Microsoft Windows 8 Enterprise 32-bit | 3.4 | | Viya | |
Microsoft Windows 8 Enterprise x64 | 3.4 | | Viya | |
Microsoft Windows NT Workstation | 3.4 | | Viya | |
Microsoft Windows 2000 Professional | 3.4 | | Viya | |
Microsoft Windows 2000 Advanced Server | 3.4 | | Viya | |
Microsoft Windows 8.1 Pro x64 | 3.4 | | Viya | |
Microsoft Windows 8.1 Pro 32-bit | 3.4 | | Viya | |
Microsoft® Windows® for x64 | 3.4 | | Viya | |
Microsoft Windows 2000 Server | 3.4 | | Viya | |
Microsoft Windows 95/98 | 3.4 | | Viya | |
Microsoft Windows 10 | 3.4 | | Viya | |
Microsoft Windows 2000 Datacenter Server | 3.4 | | Viya | |
Microsoft Windows Server 2003 Datacenter Edition | 3.4 | | Viya | |
Microsoft Windows Server 2003 Enterprise Edition | 3.4 | | Viya | |
Microsoft Windows Server 2003 Standard Edition | 3.4 | | Viya | |
Microsoft Windows Server 2003 for x64 | 3.4 | | Viya | |
Microsoft Windows Server 2008 | 3.4 | | Viya | |
Microsoft Windows Server 2008 R2 | 3.4 | | Viya | |
Microsoft Windows Server 2008 for x64 | 3.4 | | Viya | |
Microsoft Windows Server 2012 Datacenter | 3.4 | | Viya | |
Microsoft Windows Server 2012 R2 Datacenter | 3.4 | | Viya | |
Microsoft Windows Server 2012 R2 Std | 3.4 | | Viya | |
Microsoft Windows Server 2012 Std | 3.4 | | Viya | |
Microsoft Windows Server 2016 | 3.4 | | Viya | |
Microsoft Windows Server 2019 | 3.4 | | Viya | |
Microsoft Windows XP Professional | 3.4 | | Viya | |
Windows 7 Enterprise 32 bit | 3.4 | | Viya | |
Windows 7 Enterprise x64 | 3.4 | | Viya | |
Windows 7 Home Premium 32 bit | 3.4 | | Viya | |
Windows 7 Home Premium x64 | 3.4 | | Viya | |
Windows 7 Professional 32 bit | 3.4 | | Viya | |
Windows 7 Professional x64 | 3.4 | | Viya | |
Windows 7 Ultimate 32 bit | 3.4 | | Viya | |
Windows 7 Ultimate x64 | 3.4 | | Viya | |
Windows Millennium Edition (Me) | 3.4 | | Viya | |
Windows Vista | 3.4 | | Viya | |
Windows Vista for x64 | 3.4 | | Viya | |
Linux for x64 | 3.4 | | Viya | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2021-02-25 08:44:37 |
Date Created: | 2021-02-11 04:48:18 |