Hide Forgot
Description of problem: In From File tab of create page, upload a json file that defines resource already existent in project, then modify something (e.g. metadata.annotations.description) and click 'Create', confirm 'Replace', page shows error: Not found Template wasn't found in cache. But the resource is indeed updated (checkd via CLI.) Version-Release number of selected component (if applicable): fork_ami_openshift3_userinterface_public_546_222 How reproducible: Always Steps to Reproduce: 1. oc login and create project, create template: $ oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json 2. Prepare resource file with json format in local PC $ wget https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json 3. Login to Openshift web console, click Add to project --> From File --> Browse, select the json file, upload, modify something (e.g. metadata.annotations.description), then click 'Create' and confirm "Replace" Actual results: 3. Error occurs as said in description. But via `oc get template -o json`, will see the template is indeed updated. Expected results: 3. Error should not occur. Should prompt success. Additional info:
The PR has been merged, please use the master for testing.
Tested against devenv-rhel7_4087, 1. oc login and create project, create template: $ oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json 2. Prepare resource file with json format in local PC $ wget https://raw.githubusercontent.com/openshift/origin/master/examples/sample-app/application-template-stibuild.json 3. Login to Openshift web console, click Add to project --> From File --> Browse, select the json file, upload, modify something (e.g. Template.metadata.annotations.description), then click 'Create' and confirm "Replace" Could update Template metadata successfully
However when change Objects(defined in Template) metadata, these changes can not be updated successfully, will verify this bug and draft another one in order not to be confused
This bug is subjected to update metadata.annotations.description, so I verified it because description could be updated successfully. But seems other fields could not be updated successfully, will track with a new bug