Bug 1048952 - cherry-pick gear user .vimrc fix
Summary: cherry-pick gear user .vimrc fix
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
: 1102406 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-06 15:34 UTC by Luke Meyer
Modified: 2017-03-08 17:36 UTC (History)
5 users (show)

Fixed In Version: rubygem-openshift-origin-node-1.17.5.5-1
Doc Type: Bug Fix
Doc Text:
While logged into a gear, if a file was edited with vim, vim would attempt to write to the ~/.viminfo file. However, users would receive an error message because they did not have write permissions to that file. This fix points the .vimrc file to ~/data/.viminfo, and this error message no longer occurs because users are able to write to that file.
Clone Of:
Environment:
Last Closed: 2014-01-28 16:39:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0102 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.0.2 bug fix and enhancement update 2014-01-28 21:38:01 UTC

Description Luke Meyer 2014-01-06 15:34:53 UTC
This PR:
https://github.com/openshift/origin-server/pull/4215/files
For this story:
https://trello.com/c/DDxTl8n5/60-fix-viminfo-file-error-when-using-vim-within-gears
origin-server commit 0af65ca133c8f72a2d42627240d8983f6dfb1393

Comment 3 Gaoyun Pei 2014-01-15 05:58:35 UTC
Verify this bug on package rubygem-openshift-origin-node-1.17.5.6-1.el6op.noarch

The related code has been added into file:
/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.17.5.6/lib/openshift-origin-node/model/application_container_ext/setup.rb

...
123           vimrc = PathUtils.join(data_dir, ".vimrc")
124           File.open(vimrc, File::WRONLY|File::TRUNC|File::CREAT, 0600) {|file|
125             file.write %Q{set viminfo+=n#{data_dir}.viminfo}
126           }
127 
128           FileUtils.ln_s(PathUtils.join(data_dir, ".vimrc"), PathUtils.join(homedir, ".vimrc"))
...

Comment 5 errata-xmlrpc 2014-01-28 16:39:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-0102.html

Comment 6 Luke Meyer 2014-05-29 15:08:23 UTC
*** Bug 1102406 has been marked as a duplicate of this bug. ***


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