Project

General

Profile

Actions

Defect #42780

open

Diff's content is different between screen and file

Added by Trang Tran Thi Quynh 5 days ago. Updated 4 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

When testing repository, I detected any issues.
1. I have a diff between rev 4 and rev 5 below

When I access folder [trunk], and diff between rev 4 and rev 5
➔ On screen, diff's content is OK.
➔ In downloaded file, diff's content is not right.

➔Url to download diff file is missed path [trunk].
If I add path [trunk] (edit source), downloading file becomes error (This error seems to be due to fixing at #39747).

2. At git, diff's content could be not right if url as example [/projects/project01/repository/git-01-01/revisions/master/diff/trunk?rev=232d877c43879959e7a50a37924d201cdcee89a4&rev_to=5a588fbfec91d8f66cf216b2ca2f0f36acc92bdf]
➔ path param [:rev] = master
➔ query param [:rev] = 232d877c43879959e7a50a37924d201cdcee89a4
If I add [:rev => nil] to clear path param, the bug is fixed.

About my application's environment
Redmine 6
Ruby version  3.3
Rails version 7.2

Files

error-1.png (41.4 KB) error-1.png Trang Tran Thi Quynh, 2025-05-27 05:35
error-2.png (76.3 KB) error-2.png Trang Tran Thi Quynh, 2025-05-27 05:44
Actions #1

Updated by Go MAEDA 4 days ago

Thank you for reporting the issue.

Could you provide the repository dumps of your test cases?

Actions #2

Updated by Trang Tran Thi Quynh 4 days ago

You could create svn and git very simply.
➔ Create files [doc1.txt], [trunk/doc2.txt] (files are different to location is OK), commit them at a revision.
➔ Edit files, and commit them at a revision.
Then, I think you could reproduce the bugs easily.

Actions

Also available in: Atom PDF