GitHub user DaveBirdsall opened a pull request:

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

    [TRAFODION-2294] Fix permissions hole in Explain

    This set of changes does the following:
    
    1. Changes EXPLAIN so that it does not cache the query plan of whatever 
query it is explaining. This closes a permissions hole that otherwise allows 
one to execute the query afterward without privilege checking.
    
    2. Extract the SqlParser_Flags_Enum from parser/SqlParserGlobalsCmn.h into 
a new file parser/SqlParserGlobalsEnum.h, to make it easier to use these 
literals in executor code. I changed a few hard-coded constants to their 
associated literals in executor/ExExeUtilExplain.cpp as well.
    
    3. Update privs1/TEST120 regression test to include a test of the hole 
fixed by item 1 above.

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

    $ git pull https://github.com/DaveBirdsall/incubator-trafodion Trafodion2294

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

    https://github.com/apache/incubator-trafodion/pull/1074.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 #1074
    
----
commit 9e37f06dcf033b6d95309ff4c401fa73abaf3314
Author: Dave Birdsall <[email protected]>
Date:   2017-04-27T16:43:05Z

    [TRAFODION-2294] Fix permissions hole in Explain

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to