New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to delete an alias in an unauthorized domain #160

Closed
jean1 opened this Issue Mar 31, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@jean1
Collaborator

jean1 commented Mar 31, 2016

When deleting an alias in an unauthorized domain, the following error is triggered:
Error detected in script 'del' on 'Wed Mar 30 14:31:20 CEST 2016' :
can't read "trr(idrr)": no such variable
while executing
"if {$trr(idrr) eq ""} then {
#
# Name does not exist in this view
#
set found 0
} elseif {$msg ne ""} then {
set err 1..."
(procedure "filter-views" line 64)
invoked from within
"filter-views $dbfd tabuid $mode $object $idviews chkv"
invoked from within
"catch $script msg"

Probable cause is this code path in filter-views:
catch {unset trr}
...
set msg [check-authorized-host $dbfd $tabuid(idcor) $name $domain $idview trr "del-name"]
if {$trr(idrr) eq ""} then {

trr(idrr) is undefined because check-authorized-host doesn't fill out trr in the alias case:
alias {
set idcname [rr-cname-by-view trr $idview]
if {$idcname ne ""} then {
read-rr-by-id $dbfd $idcname t

jean1 added a commit that referenced this issue Apr 4, 2016

@jean1 jean1 added the bug label Apr 4, 2016

@jean1 jean1 closed this Apr 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment