[SERVER-27087] Escape nested quotes in rpm init script Created: 17/Nov/16  Updated: 28/Nov/16  Resolved: 18/Nov/16

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 3.4.0-rc5, 3.5.1

Type: Bug Priority: Major - P3
Reporter: Brian Samek Assignee: Brian Samek
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Build 2016-11-21
Participants:

 Description   

Nested quotes are not properly escaped here https://github.com/mongodb/mongo/blob/master/rpm/init.d-mongod#L41, causing PIDFILEPATH and PIDDIR to not get set.

sudo service mongod status
/etc/init.d/mongod: command substitution: line 41: unexpected EOF while looking for matching `''
/etc/init.d/mongod: command substitution: line 42: syntax error: unexpected end of file
dirname: missing operand
Try 'dirname --help' for more information.
mongod is stopped



 Comments   
Comment by Githook User [ 21/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-27087 Escape nested quotes in rpm init script

(cherry picked from commit ee159798d3f6e4a22f19c4ed1dfb31d207dcfcaf)
Branch: v3.4
https://github.com/mongodb/mongo/commit/c5c023f1ee091e90044036bf15befa6a2a53421a

Comment by Githook User [ 21/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-27087 Escape nested quotes in rpm init script
Branch: master
https://github.com/mongodb/mongo/commit/ee159798d3f6e4a22f19c4ed1dfb31d207dcfcaf

Comment by Githook User [ 18/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-27087 Escape nested quotes in RPM init script
Branch: master
https://github.com/mongodb/mongo/commit/87b829caf901c1ec65a55252f7e088d5aa30c195

Generated at Thu Feb 08 04:14:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.