Skip to content

DOCS-13772 Prohibit user writes to system views #4877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions source/includes/5.0-changes/no-direct-write-system-views.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Starting in MongoDB 5.0, for :ref:`featureCompatibilityVersion
<view-fcv>` set to ``"5.0"`` or greater, users can no longer write
directly to the :data:`<database>.system.views` collection.
5 changes: 0 additions & 5 deletions source/includes/5.0-mapReduce-deprecated.rst

This file was deleted.

12 changes: 7 additions & 5 deletions source/reference/system-collections.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ System collections include these collections stored in the ``admin`` database:
.. data:: admin.system.version

The :data:`admin.system.version` collection stores metadata to
suport internal operations. Do not modify this collection unless
support internal operations. Do not modify this collection unless
specifically instructed to in this documentation or by a MongoDB
support engineer.

Expand Down Expand Up @@ -84,7 +84,7 @@ each database:

Starting in MongoDB 4.2, ``<database>.system.indexes`` has been
removed (access to the collection has been deprecated since 3.0).
To list the inndexes, use the :dbcommand:`listIndexes` command
To list the indexes, use the :dbcommand:`listIndexes` command
instead.

.. data:: <database>.system.profile
Expand All @@ -94,13 +94,15 @@ each database:

.. data:: <database>.system.js

The :data:`<database>.system.js` collection holds special JavaScript
The :data:`<database>.system.js` collection stores special JavaScript
code for use in :doc:`server side JavaScript
</core/server-side-javascript>`. See
:doc:`/tutorial/store-javascript-function-on-server` for
more information.
:doc:`/tutorial/store-javascript-function-on-server` for more
information.

.. data:: <database>.system.views

The :data:`<database>.system.views` collection contains
information about each :doc:`view </core/views>` in the database.

.. include:: /includes/5.0-changes/no-direct-write-system-views.rst
2 changes: 2 additions & 0 deletions source/release-notes/5.0-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Map Reduce Changes
General Changes
---------------

- .. include:: /includes/5.0-changes/no-direct-write-system-views.rst

- Starting in MongoDB 5.0, the :dbcommand:`reIndex` command and the
:method:`db.collection.reIndex()` shell method may only be run on
:term:`standalone` instances.
Expand Down