Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-23078

Remove HiveDriver SecurityManager Check

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: JDBC
    • Labels:
      None
    • Target Version/s:

      Description

      HiveDriver.java
        public HiveDriver() {
          // TODO Auto-generated constructor stub
          SecurityManager security = System.getSecurityManager();
          if (security != null) {
            security.checkWrite("foobah");
          }
        }
      

      Not sure why it needs to write a file called "foobah" but I checked out some other JDBC drivers and they do nothing like this. Remove this check; remove the constructor.

        Attachments

        1. HIVE-23078.1.patch
          0.6 kB
          David Mollitor

          Activity

            People

            • Assignee:
              belugabehr David Mollitor
              Reporter:
              belugabehr David Mollitor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: