[
https://issues.apache.org/jira/browse/FLINK-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sendoh updated FLINK-5598:
--------------------------
Description:
As as a Jenkins user who wants to uplaod jar through http call, I want jar
file name is returned when 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.
was:
As as a developer I want jar file name is returned when 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.
> Return jar name when jar is uploaded
> ------------------------------------
>
> Key: FLINK-5598
> URL: https://issues.apache.org/jira/browse/FLINK-5598
> Project: Flink
> Issue Type: Improvement
> Components: Web Client
> Reporter: Sendoh
>
> As as a Jenkins user who wants to uplaod jar through http call, I want jar
> file name is returned when 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)