Skip to content
Snippets Groups Projects

Fix bug where commit data would not appear in some subdirectories

Merged Stan Hu requested to merge stanhu/gitlab-ce:fix-commit-data-url-generation into master

Fix issue where commit data would not show up in some subdirectories due to escaped slashes. For example:

https://gitlab.common-lisp.net/ecl/ecl/tree/develop/src/gc (now patched with fix)

The upgrade from Rails v4.1.2 to v4.1.9 (76aad9b7) caused slashes in a tree to be escaped automatically. Using a wildcard glob in the route prevents this behavior.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
435 435 member do
436 436 # tree viewer logs
437 437 get 'logs_tree', constraints: { id: Gitlab::Regex.git_reference_regex }
438 get 'logs_tree/:path' => 'refs#logs_tree', as: :logs_file, constraints: {
438 get 'logs_tree/*path' => 'refs#logs_tree', as: :logs_file, constraints: {
439 439 id: Gitlab::Regex.git_reference_regex,
440 440 path: /.*/
  • Douwe Maan Status changed to merged

    Status changed to merged

  • Douwe Maan mentioned in commit 822ba95f

    mentioned in commit 822ba95f

  • Douwe Maan mentioned in commit c99f4e93

    mentioned in commit c99f4e93

  • mentioned in commit c311b39f

  • mentioned in commit e805a647

  • mentioned in merge request !5824 (merged)

  • mentioned in commit dd3b738d

  • mentioned in commit 2193ae22

  • Douwe Maan mentioned in commit 7edc37d1

    mentioned in commit 7edc37d1

  • mentioned in commit ec4549e4

  • mentioned in commit f673f1e3

  • Douwe Maan mentioned in commit 75f216cb

    mentioned in commit 75f216cb

  • Mentioned in commit e805a647

  • Mentioned in commit 2193ae22

  • Please register or sign in to reply
    Loading