-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.1.19] mv hdfs file #346
Conversation
@RequestParam(value = "filepath", required = false) String filePath, | ||
@RequestParam(value = "isRecursion", required = false) Boolean isRecursion, | ||
@RequestParam(value = "filePermission", required = false) String filePermission) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filepath 和 filePermission 的 required 与后面参数处理不一致
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
return Message.error( MessageFormat.format(PARAMETER_NOT_BLANK, filePermission)); | ||
} | ||
if (null == isRecursion) { | ||
isRecursion = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是不是没必要在代码里判断, @RequestParam 可以给默认值
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code review
Matcher matcher = Pattern.compile("[0-7]{3}").matcher(filePermission); | ||
if (matcher.matches()) { | ||
return Message.error(MessageFormat.format(PERMISSION_FORMAT_ERROR, filePermission)); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a slight problem with the logic. Please fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
What is the purpose of the change
EngineConn-Core defines the the abstractions and interfaces of the EngineConn core functions.
The Engine Service in Linkis 0.x is refactored, EngineConn will handle the engine connection
and session management.
Related issues/PRs
Related issues: #590
Related pr:#591
Brief change log
Checklist