Defect #15235

Wiki Pages REST API with version returns wrong comments

Added by Yukinari TOYOTA about 4 years ago. Updated about 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:REST API
Target version:2.3.4
Resolution:Fixed Affected version:2.3.3

Description

When I requested an old version wiki-page using REST API with version, Redmine respond contents with wrong comments.

see below:

  1. http://www.redmine.org/projects/redmine/wiki/Logo/24.json
  2. http://www.redmine.org/projects/redmine/wiki/Logo/24

24.json should have "comments": "Adds license details" but it returns "Spam squashing"

I attached a patch for app/views/wiki/show.api.rsb with additional tests.

0001-fix-wiki-pages-rest-api-returns-wrong-comments.patch Magnifier (1.39 KB) Yukinari TOYOTA, 2013-10-31 18:04

Associated revisions

Revision 12245
Added by Jean-Philippe Lang about 4 years ago

Wiki Pages REST API with version returns wrong comments (#15235).

Patch by Yukinari TOYOTA.

History

#1 Updated by Etienne Massip about 4 years ago

  • Target version set to 2.3.4

#2 Updated by Jean-Philippe Lang about 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Fix committed, thanks for pointing this out.

#3 Updated by Jean-Philippe Lang about 4 years ago

  • Status changed from Resolved to Closed

Merged.

Also available in: Atom PDF