Details
-
Bug
-
Resolution: Fixed
-
Major
-
0.10
-
None
-
Unknown
-
Description
Problem
On an MCP endpoint with cross-wiki reach, get_history called with the wiki parameter for a document of another wiki reports no revisions, although the document has a history:
get_history reference="Sandbox.CrossWikiReachTest" wiki="second" Current version: 1.3 Total revisions: 0 (minor edits included, newest first) No revisions at offset=0; this document has 0 revisions.
The same call on the endpoint of the wiki that holds the document lists its 3 revisions. Reading one version (version="1.1") or a diff (from="1.1") across wikis works; only the revision list is affected.
When the wiki of the endpoint has a document with the same reference, the total shown is the number of revisions of that other document, so the list is paged from a wrong total.
Cause
The revision count is read while the context wiki is the wiki of the endpoint. The versioning store of the platform runs the count in the database of the context wiki and identifies the document by an id that does not include the wiki, unlike the other history reads, which switch to the wiki of the document themselves.
Expected
The revision list of a document of another wiki shows the same revisions and the same total as on that wiki's own endpoint.