Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1513

Avoid two splits in PathsUpdate.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      if(uriPath.split("^/").length < 2) {
      	          throw new SentryMalformedPathException("Path part of uri does not seem right, was expecting a non empty path" +
      	                  ": path = " + uriPath + ", uri=" + uri);
      	        }
      	        return Lists.newArrayList(uriPath.split("^/")[1].split("/"));
      

      Also, correct the spelling in the same file
      URIs with non hdfs schemee will just be ignore

      Attachments

        1. SENTRY-1513.001.patch
          2 kB
          Jan Hentschel
        2. SENTRY-1513.002.patch
          2 kB
          Jan Hentschel

        Issue Links

          Activity

            People

              janh Jan Hentschel
              sravya Sravya Tirukkovalur
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: