[SERVER-23591] Avoid using rawMongoProgramOutput() in js_protection.js and js_protection_roundtrip.js Created: 06/Apr/16  Updated: 18/Nov/16  Resolved: 09/Apr/16

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 3.2.6, 3.3.5

Type: Task Priority: Minor - P4
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Done Votes: 0
Labels: test-only
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-9131 Ensure documents with code elements d... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Query 13 (04/22/16)
Participants:
Linked BF Score: 0

 Description   

Until SERVER-22992 is implemented, rawMongoProgramOutput() isn't guaranteed to return the full output of the process, even after the process has exited. The assertions about the operations in the other mongo shells started in js_protection.js and js_protection_roundtrip.js can be done based on the return code of the process, rather than its output. Doing so will improve the reliability of these tests.



 Comments   
Comment by Githook User [ 14/Apr/16 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-23591 Assert on return code of mongo shell in js_protection*.js.

The rawMongoProgramOutput() function isn't guaranteed to return the full
output of the process, even after it has exited.

(cherry picked from commit 4566c8ebffb803d5175e7f1b7aa5baeffcba795e)
Branch: v3.2
https://github.com/mongodb/mongo/commit/60681f21a65226d5a38ac632b7ec28d081c2671c

Comment by Githook User [ 09/Apr/16 ]

Author:

{u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}

Message: SERVER-23591 Assert on return code of mongo shell in js_protection*.js.

The rawMongoProgramOutput() function isn't guaranteed to return the full
output of the process, even after it has exited.
Branch: master
https://github.com/mongodb/mongo/commit/4566c8ebffb803d5175e7f1b7aa5baeffcba795e

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