Skip to content

Conversation

@JohnNiang
Copy link
Member

What type of PR is this?

/kind improvement
/area core
/milestone 2.1.x

What this PR does / why we need it:

See #2931 for more.

Which issue(s) this PR fixes:

Fixes #2931

Special notes for your reviewer:

While you try to upload attachment which already exists in upload folder, the following error will get:

2022-12-20T15:31:32.493+08:00 ERROR 14760 --- [oundedElastic-3] h.a.c.e.a.e.LocalAttachmentUploadHandler : attachment upload error occurred because file already existed: C:\Users\johnn\halo2-dev\attachments\upload\DSC03975-small.jpg

image

Does this PR introduce a user-facing change?

优化附件上传时文件已存在的错误提示

@JohnNiang JohnNiang changed the title Map FileAlreadyExistsException while uploading attachment Optimize error prompts file already exists while uploading attachments Dec 20, 2022
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Dec 21, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from johnniang after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@JohnNiang
Copy link
Member Author

/hold

Wait for i18n exception message.

@f2c-ci-robot f2c-ci-robot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 21, 2022
@JohnNiang
Copy link
Member Author

/close

Use #3042 instead.

@f2c-ci-robot f2c-ci-robot bot closed this Dec 26, 2022
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Dec 26, 2022

@JohnNiang: Closed this PR.

Details

In response to this:

/close

Use #3042 instead.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@JohnNiang JohnNiang deleted the refactor/upload-exception branch March 15, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

附件上传异常错误提示不明确

2 participants