Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1048952 - cherry-pick gear user .vimrc fix
cherry-pick gear user .vimrc fix
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers (Show other bugs)
2.0.0
Unspecified Unspecified
unspecified Severity low
: ---
: ---
Assigned To: Luke Meyer
libra bugs
:
: 1102406 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-06 10:34 EST by Luke Meyer
Modified: 2017-03-08 12 EST (History)
5 users (show)

See Also:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-01-28 11:39:24 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0102 normal SHIPPED_LIVE Red Hat OpenShift Enterprise 2.0.2 bug fix and enhancement update 2014-01-28 16:38:01 EST

  None (edit)
Description Luke Meyer 2014-01-06 10:34:53 EST
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 00:58:35 EST
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 11:39:24 EST
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 11:08:23 EDT
*** 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.