[SERVER-5989] XMLHttpRequest: Need mongo to XMLHttpRequest Created: 01/Jun/12  Updated: 31/May/17  Resolved: 22/Mar/17

Status: Closed
Project: Core Server
Component/s: JavaScript, Networking, Usability
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Nas Kavian Assignee: Andrew Morrow (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All


Backwards Compatibility: Fully Compatible
Participants:

 Description   

Leveraging JavaScript is awesome, but I'm needing a way to make an HTML post.

Having XMLHttpRequest would be great so I can push data from the DB instead of always pulling data from the client.

I've seen sample code of how someone has put XMLHttpRequest into V8.

2 possible fixes:

  • Add a native XMLHttpRequest as part of a future build
  • Add a way to add external modules without having to recompile mongo


 Comments   
Comment by Andrew Morrow (Inactive) [ 22/Mar/17 ]

nask -

I am planning to close this old server ticket. We do not plan to implement support for allowing the running server to issue XMLHttpRequest requests from within Javascript evaluation contexts. The database server is not a general purpose application container, and allowing user controlled RPCs out to external systems into the database processing pipeline would risk destabilizing the database. It would also introduce considerable complexity. Finally, we are generally discouraging the use of db.eval, as it is deprecated, and we are recommending that most users of MapReduce move to the aggregation features. Given that, the number of contexts where such a feature would be useable is declining.

Please feel free to re-open this ticket or leave further comments if you have further thoughts on this request, or on our reasons for declining to pursue it.

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