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

several classes call initCause which masks lower level exceptions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.12.0
    • Fix Version/s: None
    • Component/s: Authorization
    • Labels:
      None

      Description

      AuthorizationPreEventListener has following code that will result in "Can't overwrite exception" being thrown, and also mask the lower level exception.

        private InvalidOperationException invalidOperationException(Exception e) {
          InvalidOperationException ex = new InvalidOperationException();
          ex.initCause(e.getCause());
          return ex;
        }
      
        private MetaException metaException(HiveException e) {
          MetaException ex =  new MetaException(e.getMessage());
          ex.initCause(e);
          return ex;
        }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sushanth Sushanth Sowmyan
                Reporter:
                thejas Thejas Nair
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: