Defect #26498

Rails5: scm entry *.html causes 404 Not Found

Added by Toshi MARUYAMA 6 months ago. Updated 6 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:SCM
Target version:-
Resolution: Affected version:

Description

source:trunk/public/404.html

r16848:

=== (+9,-9) config/routes.rb ===
@@ -244,7 +244,7 @@

   get 'projects/:id/repository/:repository_id/changes(/*path)',
       :to => 'repositories#changes',
-      :format => false
+      :format => 'html'
Started GET "/projects/redmine-svn/repository/entry/trunk/public/404.html" for 127.0.0.1 at 2017-07-22 19:29:57 +0900
Processing by RepositoriesController#entry as HTML
...
Shelling out: 'svn' list --xml 'http://svn.redmine.org/redmine/trunk/public'@HEAD --no-auth-cache --non-interactive
...
Completed 404 Not Found in 3860ms (Views: 43.7ms | ActiveRecord: 3.2ms)

Related issues

Related to Redmine - Feature #23630: Migrate to Rails 5.1 Closed

Associated revisions

Revision 16851
Added by Jean-Philippe Lang 6 months ago

Fixed routes to html files in repositories (#26498).

Revision 16853
Added by Jean-Philippe Lang 6 months ago

Adds tests for path to an html file (#26498).

History

#1 Updated by Jean-Philippe Lang 6 months ago

  • Status changed from New to Closed
  • Target version deleted (4.0.0)

Fixed, thanks for pointing this out.

#2 Updated by Jean-Philippe Lang 6 months ago

Also available in: Atom PDF