Bug 1374165 - Unable to upload the same file the second time after clear in ace editor
Summary: Unable to upload the same file the second time after clear in ace editor
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Management Console
Version: 3.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 07:09 UTC by Yadan Pei
Modified: 2016-12-09 21:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-09 21:52:20 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Yadan Pei 2016-09-08 07:09:23 UTC
Description of problem:
On create-route page and Import YAML/JSON page, 
User first upload a file by clicking "Browse" -> after content loaded on page -> click "Clear value" -> click Browse and upload the same file again. At the second time of uploading, file could not be uploaded successfully on Chrome 52, IE 11, Edge 25 & Safari 9.1.
Only works for Firefox 48
Upload a different file at the second time, then give a third uploading the same file with the one uploaded first time will succeed

Version-Release number of selected component (if applicable):
openshift v1.3.0-alpha.3+7f59726
kubernetes v1.3.0+52492b4
etcd 2.3.0+git

How reproducible:
Always

Steps to Reproduce:
1.1 Login and create a new project
1.2. Add to project -> Import YAML/JSON
1.3. Click "Browse", select one file and upload
1.4. After file content is loaded on page, click "Clear value", hit on "Browse" and upload the same file again

2.1 Create service and pod,download certificate for edge route
# oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/caddy-docker.json
# oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/edge/service_unsecure.json
# curl -k -O https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/routing/edge/route_edge-www.edge.com.crt
2.2 Click 'Create route' on Services page
2.3.Set TLS Termination with "Edge"
2.4.Click Browse to upload Certificate "route_edge-www.edge.com.crt"
2.5.After Certificate content is loaded, click "Clear value" 
2.6.Click Browse to upload Certificate "route_edge-www.edge.com.crt" again


Actual results:
1.4 File could not be uploaded the second time
2.6 "route_edge-www.edge.com.crt" was not uploaded the second time

Expected results:
1.4 File should be uploaded successfully
2.6 File should be uploaded successfully

Additional info:

Comment 1 openshift-github-bot 2016-09-23 16:50:35 UTC
Commit pushed to master at https://github.com/openshift/origin-web-console

https://github.com/openshift/origin-web-console/commit/0bb037fc428e3344d026e5ab49df74d3e2be5471
Bug 1374165: Unable to upload the same file the second time after clear in ace editor

Comment 2 Jakub Hadvig 2016-09-26 09:01:37 UTC
Fix was merged into origin-web-console repository
https://github.com/openshift/origin-web-console/commit/0bb037fc428e3344d026e5ab49df74d3e2be5471

Comment 3 Yadan Pei 2016-10-12 10:44:36 UTC
Checked against latest origin-web-console(manually vendored, latest commit is b60172f)

And tried the reproduce steps on Chrome 53, Firefox 49, IE 11, Edge 25, Safari 9.1, when upload the same file the second time, files could be uploaded successfully

Move to VERIFIED


Note You need to log in before you can comment on or make changes to this bug.