Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-5598

Return jar name when jar is uploaded

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.0
    • Component/s: Web Client
    • Labels:
      None

      Description

      As as a Jenkins user who wants to uplaod jar through http call, I want jar file name is returned after jar is uploaded.
      Currently it returns nothing, as the code shown:
      File newFile = new File(jarDir, UUID.randomUUID() + "_" + filename);
      if (tempFile.renameTo(newFile)) {
      // all went well
      return "{}";
      }
      Ref: https://github.com/apache/flink/blob/master/flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/handlers/JarUploadHandler.java#L58

      My proposal will be

      reuturn

      {"fileName": newFile.getName()}

      Any suggestion is welcome.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fwollert Fabian Wollert
                Reporter:
                HungChang Sendoh
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: