You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by rm...@apache.org on 2016/08/19 23:52:43 UTC

[1/2] incubator-trafodion git commit: TRAFODION [2171] 'get users' returned invalid character error when trying to ...

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 88f25555d -> 679b1b1c5


TRAFODION [2171] 'get users' returned invalid character error when trying to ...

'get users' returned invalid character error on centos7.1 and centos7.2,
running the traf_authentication_setup script that enables security.
The problem occurred while referencing a pointer to a local variable that has
gone out of scope.  Fixed 'get users' to work the same as 'get roles'.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/df7bf5a4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/df7bf5a4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/df7bf5a4

Branch: refs/heads/master
Commit: df7bf5a4ce479b3a44379458534744f006d1dda4
Parents: 47d924b
Author: Roberta Marton <ro...@apache.org>
Authored: Fri Aug 19 18:33:15 2016 +0000
Committer: Roberta Marton <ro...@apache.org>
Committed: Fri Aug 19 18:33:15 2016 +0000

----------------------------------------------------------------------
 core/sql/executor/ExExeUtilGet.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/df7bf5a4/core/sql/executor/ExExeUtilGet.cpp
----------------------------------------------------------------------
diff --git a/core/sql/executor/ExExeUtilGet.cpp b/core/sql/executor/ExExeUtilGet.cpp
index c438752..c818e14 100644
--- a/core/sql/executor/ExExeUtilGet.cpp
+++ b/core/sql/executor/ExExeUtilGet.cpp
@@ -417,7 +417,7 @@ static const QueryString getTrafUsers[] =
 {
   {" select distinct auth_db_name "},
   {"   from %s.\"%s\".%s "},
-  {"  where auth_type = '%s' "},
+  {"  where auth_type = 'U' "},
   {" order by 1 "},
   {"  ; "}
 };
@@ -1835,13 +1835,9 @@ short ExExeUtilGetMetadataInfoTcb::work()
                   qs = getTrafUsers;
                   sizeOfqs = sizeof(getTrafUsers);
 
-                  char type[2];
-                  type[0] = 'U';
-                  type[1] = 0;
                   param_[0] = cat;
                   param_[1] = sch;
                   param_[2] = auths;
-                  param_[3] = (char *)&type;
 		}
                 break;
               case ComTdbExeUtilGetMetadataInfo::PROCEDURES_IN_SCHEMA_:


[2/2] incubator-trafodion git commit: Merge [TRAFODION-2171] pr 665 get users returned invalid character

Posted by rm...@apache.org.
Merge [TRAFODION-2171] pr 665 get users returned invalid character


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/679b1b1c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/679b1b1c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/679b1b1c

Branch: refs/heads/master
Commit: 679b1b1c51676125924657a0bdd6cc5dc8281443
Parents: 88f2555 df7bf5a
Author: Roberta Marton <ro...@apache.org>
Authored: Fri Aug 19 23:51:50 2016 +0000
Committer: Roberta Marton <ro...@apache.org>
Committed: Fri Aug 19 23:51:50 2016 +0000

----------------------------------------------------------------------
 core/sql/executor/ExExeUtilGet.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------