[ 
https://issues.apache.org/jira/browse/TRAFODION-2411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15771448#comment-15771448
 ] 

ASF GitHub Bot commented on TRAFODION-2411:
-------------------------------------------

GitHub user arvind-narain opened a pull request:

    https://github.com/apache/incubator-trafodion/pull/891

    [TRAFODION-2411] Conn aborted when connecting with a reregisterd user

    APIs used to clear compiler caches had changed, leading to syntax errors.
    
    Modified the following -
    DELETE ALL FROM TABLE(QUERYCACHE());
    to
    DELETE ALL FROM TABLE(QUERYCACHE('ALL','LOCAL'));


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/arvind-narain/incubator-trafodion clearcache

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-trafodion/pull/891.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #891
    
----
commit 35e928be46167deb381faa5ad0318e99a2433c0a
Author: Arvind Narain <[email protected]>
Date:   2016-12-23T00:03:12Z

    [TRAFODION-2411] Conn aborted when connecting with a reregisterd user
    
    APIs used to clear compiler caches had changed, leading to syntax
    errors.

----


> connection aborted when connecting with a re-registered user
> ------------------------------------------------------------
>
>                 Key: TRAFODION-2411
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2411
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: sql-security
>    Affects Versions: 2.2-incubating
>            Reporter: Gao, Rui-Xian
>            Assignee: Roberta Marton
>
> If we unregister a user and register again, then use the re-registered user 
> to connect to database, the connection will get 'server aborted' info, and 
> then it's actually connected as DB__ROOT.
> [trafodion@gyvm-1 security]$ trafci
> Welcome to EsgynDB Enterprise Command Interface
> Copyright (c) 2015-2016 Esgyn Corporation
> Host Name/IP Address: gyvm-1.novalocal:23400
> User Name: zz
> *** ERROR[8837] Invalid username or password.  User: ZZ [2016-12-21 11:44:15]
> User Name: trafodion
> Password:
> Role Name [Primary Role]:
> Connected to EsgynDB Advanced
> SQL>unregister user qauser10;
> --- SQL operation complete.
> SQL>register user qauser10;
> --- SQL operation complete.
> SQL>connect qauser10/mypasswd;
>  Server aborted abnormally or Connection timed out
> *************************************************************************************
> it didn't quit, asked for host name, if we don't provide any info and hit 
> Enter directly, then we will be back to the connection as DB__ROOT, so 
> connecting with the re-registered user failed.
> *************************************************************************************
> Host Name/IP Address:
> Unknown Host:
> Host Name/IP Address:
> Unknown Host:
> SQL>select current_user from (values(1)) t;
> (EXPR)
> --------------------------------------------------------------------------------------------------------------------------------
> DB__ROOT                                                                      
>   
> --- 1 row(s) selected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to