Vote #63260
完了View differences for individual file of a changeset fails if the repository URL doesn't point to the repository root
0%
説明
Our SVN repository serves many projects. The structure is
| |-Project1 | | | |-trunk | |-branches | |-tags | |-Project2 | | | |-trunk | |-branches | |-tags
So in Redmine, our repository settings for Project 2, point to the project 2 folder, not the root of the repository (a nice feature, not sure if it was intended but very useful because we have many projects in a single repository). (e.g. repository URL is set to @http://server/svn/Project2@ rather than @http://server/svn@
If we view a changeset, we get a correct list of the changed files. If we then click the 'view differences' button for the changeset, it correctly shows all differences in all files.
But if instead select 'view differences' for an individual file, we get a redmine page saying "The entry or revision was not found in the repository." which is definitely incorrect.
I believe this is to do with Redmine not matching the paths directly (from looking at the error message). This is the error (I've edited the error paths so that our project names don't appear)
Processing RepositoriesController#diff (for 172.16.75.119 at 2008-05-21 09:41:30) [GET] Session ID: 54cbe17bee37f0fe2d00d59a8e07c077 Parameters: {"rev"=>"26121", "action"=>"diff", "id"=>"project2", "controller"=>"repositories", "path"=>["Project2", "trunk", "File1.cs"]} Rendering template within layouts/base Completed in 0.46900 (2 reqs/sec) | Rendering: 0.01600 (3%) | DB: 0.00000 (0%) | 500 Internal Server Error [http://server/repositories/diff/project2/trunk/File1.cs?rev=666]
I wonder if redmine is just appending the full path to the file to the repository URL when actually it should merge backwards (e.g. it is querying for @http://server/svn/Project2/Project2/trunk/File1.cs@ rather than @http://server/svn/Project2/trunk/File.cs@ because the repository URL is @http://server/svn/Project2@, not @http://server/svn/@ (which is the repository root). In this case it should merge the end of the repository URL with the start of the requested file URL.
- redmine-0.7.1
- svn-1.4.6 (over http)
- ruby-1.8.6
- rails-2.0.2
- sqlite3-3.5.8
- mongrel-1.1.4
journals
Please ignore the fact that the revision numbers don't tie up in the above error message, as mentioned, I edited it to remove references to our project names and changed the revision number in one place, not the other. In the actual error message, they do match and are correct for what I was trying to view.
--------------------------------------------------------------------------------
Hey +all+
--------------------------------------------------------------------------------
I'm guessing this is a bogus change.
--------------------------------------------------------------------------------
the same problem #1262
--------------------------------------------------------------------------------
If you change in Redmine Project2 identifier (o create a new project with "identifier != Project2"), then all works fine.
--------------------------------------------------------------------------------
I'm sorry
You right. If the repository URL doesn't point to the repository root then rise an error.
Our SVN repository structure is
|-Software
|
|-Project1
| |
| |-trunk
| |-branches
| |-tags
|
|-Project2
| |
| |-trunk
| |-branches
| |-tags
And repository URL is set to http://server/svn/software/Project2
--------------------------------------------------------------------------------
Hi Sergej, yes you are right, it is the same issue. I did try a search for this before posting the issue, but didn't come up with yours. Please can one of the admins mark one as a duplicate of the other?
Thanks
Russell
--------------------------------------------------------------------------------
Fixed in r1446.
--------------------------------------------------------------------------------
related_issues
relates,Closed,1262,Subversion repository "View differences" on each file rise ERROR
relates,Closed,1209,"View differences" of one file at /repositories/revision/ fails
relates,Closed,990,Repository: View differences doesn't work