Public bug reported:

On Focal, I cannot access any project's repository page (git), which
results in an internal server error.

The log says:

---
Started GET "/projects/myproject-1/repository" for <IPADDRESS> at 2020-06-02 
11:50:42 +0200
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"myproject-1"}
  Current user: username01 (id=60)
Completed 500 Internal Server Error in 161ms (ActiveRecord: 78.3ms)
  
FrozenError (can't modify frozen String: ""):
  
lib/redmine/scm/adapters/abstract_adapter.rb:279:in `force_encoding'
lib/redmine/scm/adapters/abstract_adapter.rb:279:in `scm_iconv'
lib/redmine/scm/adapters/git_adapter.rb:136:in `entries'
app/models/repository/git.rb:98:in `scm_entries'
app/models/repository.rb:204:in `entries'
app/controllers/repositories_controller.rb:86:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
---

I found this issue in the redmine issue tracker which suggests this is
an incompatibility with ruby 2.7 which is too new, and that redmine
4.1.x resolved the issue:

https://www.redmine.org/issues/33021

I tried applying the commit referenced towards the end of that issue
locally, and unsurprisingly there were a bunch of conflicts, but it
appears that the few files that actually got patched cleanly were enough
to make the repository view work again, so maybe backporting the patch
is the way to go.

** Affects: redmine (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1881733

Title:
  Cannot access repository page: "FrozenError"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/redmine/+bug/1881733/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to