Defect #42780
openDiff's content is different between screen and file
0%
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
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.