Bug 1273975 - oc edit doesn't work on windows
Summary: oc edit doesn't work on windows
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.0.0
Hardware: Unspecified
OS: Windows
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Wei Sun
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-21 15:57 UTC by Grant Shipley
Modified: 2015-11-23 14:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 14:25:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Grant Shipley 2015-10-21 15:57:04 UTC
Description of problem:

When running oc edit on a windows machine, the file is opened inside of the default editor on most (99.9%) of machines.  A couple of problems:
1* the file is not wordwrapped which makes in extremely hard to edit
2* when done making changes, the file will not save with an error message that the file is already in use by another process.


Version-Release number of selected component (if applicable):
3.0.1
oc tool 3.0.1.0

How reproducible:
everytime

Steps to Reproduce:
1. edit a object on windows
2. make changes
3. click save
4. see error message

Actual results:
File can not be saved.

Expected results:
Same behavior on Linux / OSX where the file is saved and applied.

Additional info:

Comment 3 Xingxing Xia 2015-10-26 07:30:00 UTC
I verified this issue against windows. Versions are:
oc v3.0.2.903-29-g49953d6
kubernetes v1.2.0-alpha.1-1107-g4c8e6f4

The bug is fixed. oc edit can display and save the file well, like linux.
So I move the bug to VERIFIED.

Comment 4 Brenton Leanhardt 2015-11-23 14:25:03 UTC
This fix is available in OpenShift Enterprise 3.1.


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