# Bug OP-17276 - OpenProject 16.0.1: Error 500 when clicking on a revision link in a repository

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-17276

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Enterprise edition, Modules and project features / Repository |
| Target versions | 16.1.0 |
| Observed in versions | 16.0.0 |
| Sprint | 16.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user with permissions to read the repository in project that has a repository

2.  Go to the repository page

3.  Click on a revision link

### What is the buggy behavior?

  - OpenProject displays an error 500

### What is the expected behavior?

1.  OpenProject should display the revision tree

### 

### **Logs**

``` text
App 462987 output: E, [2025-06-05T12:07:31.386926 #462987] ERROR -- : [f027d55a-59c0-4c1b-b596-d7f9bf7a0a85] user=3 can't modify frozen String: "change": can't modify frozen String: "change"
```

After `style` is fixed, the error is:

``` text
App 465902 output: E, [2025-06-05T12:15:25.498605 #465902] ERROR -- : [0ca60835-549b-4507-880e-120018e7f34e] user=3 can't modify frozen String: "<ul>": can't modify frozen String: "<ul>"
```

So `output` needs to be fixed too.

Complete patch:

``` text
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb
index 5a12c00c..fb7984ab 100644
--- a/app/helpers/repositories_helper.rb
+++ b/app/helpers/repositories_helper.rb
@@ -116,9 +116,9 @@ module RepositoriesHelper
   def render_changes_tree(tree)
     return "" if tree.nil?
 
-    output = "<ul>"
+    output = +"<ul>"
     tree.keys.sort.each do |file|
-      style = "change"
+      style = +"change"
       text = File.basename(file)
       if s = tree[file][:s]
         style << " folder"
```

### 

### Environment information

**OpenProject version**

OpenProject 16.0.1.
