Uploaded image for project: 'Apache Submarine'
  1. Apache Submarine
  2. SUBMARINE-24

[Submarine] Correct method usage of str.subString in CliUtils

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.2.0
    • None
    • None

    Description

      In CliUtils.java (line 74), there's uncorrect code block,:

      if (resourcesStr.endsWith("]")) {
       resourcesStr = resourcesStr.substring(0, resourcesStr.length());
      }

      Above if block will execute "resourceStr = resourceStr". It should be "length() -1"

      Attachments

        1. YARN-8918-trunk.001.patch
          1 kB
          Zhankun Tang
        2. YARN-8918-trunk.002.patch
          1 kB
          Zhankun Tang
        3. YARN-8918-trunk.003.patch
          1 kB
          Zhankun Tang

        Activity

          People

            tangzhankun Zhankun Tang
            tangzhankun Zhankun Tang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: