Hide Forgot
Created attachment 572997 [details] Error page Description of problem: When I add attachment such as named "zh_CN_Document name_Redundant '​'.png" , After click upload button will show error page. UnicodeEncodeError at /management/uploadfile/ 'ascii' codec can't encode character u'\u200b' in position 81: ordinal not in range(128) Version-Release number of selected component (if applicable): 3.6 on engineering How reproducible: 100% Steps to Reproduce: 1.Enter to any test run, Ex https://tcms-stage.englab.bne.redhat.com/run/25224/ 2.Expand any case run, click 'add' attachment 3.Browser file named "zh_CN_Document name_Redundant '​'.png" 4.Click 'upload' Actual results: Show error page as attachment Expected results: Can added Additional info:
Created attachment 572999 [details] attachment
This bug was fixed in tcms 3.8.0. Thanks.
Created attachment 600232 [details] The file's name is cut off before quotes. Verify 3.8.0-1 on stage --> FAIL Verify steps: 1.Enter to any test run, Ex https://tcms-stage.englab.bne.redhat.com/run/25224/ 2.Expand any case run, click 'add' attachment 3 Browser file named "zh_CN_Document name_Redundant '​'.png" 4.Click 'upload' Actual results: The file's name is cut off before quotes. And when clicking the attachemnt, it shows error page as the attachment "error2". Expected results: Can added and view.
Created attachment 600233 [details] error2
It was caused by server OS's environment setting,will support it in next build. Thanks.
(In reply to comment #5) > It was caused by server OS's environment setting,will support it in next > build. > Thanks. Verify 3.8.0-2 on stage --> FAIL Description of problem: The bug is still existed. Verify steps: 1.Enter to any test run, Ex https://tcms-stage.englab.bne.redhat.com/run/25224/ 2.Expand any case run, click 'add' attachment 3 Browser file named "zh_CN_Document name_Redundant '​'.png" 4.Click 'upload' Actual results: The file's name is cut off before quotes. And when clicking the attachemnt, it shows error page as the attachment "error2". Expected results: Can added and view.
Temporarily provide warning info to user. Will support special character in attachment name in TCMS 4.0. After release 3.8.1, will move this bug to 4.0
If upload a file with filename non-ascii, temporarily provide warning info.
Verify 3.8.1 on tcms-test -->PASS Verify steps: 1.Enter to any test run, Ex https://tcms-stage.englab.bne.redhat.com/run/25224/ 2.Expand any case run, click 'add' attachment 3 [details].Browser file named "zh_CN_Document name_Redundant '​'.png" 4.Click 'upload' Actual result: warning info were provided. "Upload File name is not legal."