Project

General

Profile

Actions

Defect #39548

open

Internal Error reported when Viewing GIT repository

Added by Chris Bailey 12 months ago. Updated 11 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I am using a locally hosted redmine instance with GIT running on the same box.

In most cases the integration works between Redmine and GIT as expected but I have one repository that cannot be linked. I do not see any obvious difference between the failing repository and the working ones.

The user receives the following output:

Internal error

An error occurred on the page you were trying to access.
if you continue to experience problems please contact your Redmine administrator for assistance.

If you are the Redmine administrator, check your log files for details about the error.

My installation information is:

Environment:
  Redmine version                5.0.2.stable
  Ruby version                   3.1.2-p20 (2022-04-12) [x86_64-linux]
  Rails version                  6.1.6
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine settings:
  Redmine theme                  Classic
SCM:
  Subversion                     1.14.1
  Mercurial                      5.6.1
  Bazaar                         3.1.0
  Git                            2.30.2
  Filesystem                     
Redmine plugins:
  redmine_agile                  1.6.5
  redmine_dmsf                   3.0.8
  redmine_more_previews          5.0.7

The Repository is Running with GITea which is on GIT version 2.36.4,
Based on the error (shown below) I searched the commit messages / comments for "Mov" and did find an single instance where a comment appears to have an embedded line break which is reported as follows when I do a git log:

Updated location of various Status bits in the Status message BIT section based on the recent update to the ICD. <U+2028>Moved all the input discrete bits to the 3Byte of status message (this previously only held ...

I don't see anything looking like the reported hex values (\xE2\x80\xA8)

the redmine logs show the following when the error occurs:

I, [2023-11-08T21:32:29.347197 #1]  INFO -- : Started GET "/projects/b-draft/repository/t3_software" for 10.1.10.198 at 2023-11-08 21:32:29 +0000
I, [2023-11-08T21:32:29.348562 #1]  INFO -- : Processing by RepositoriesController#show as HTML
I, [2023-11-08T21:32:29.348752 #1]  INFO -- :   Parameters: {"id"=>"b-draft", "repository_id"=>"t3_software"}
I, [2023-11-08T21:32:29.355799 #1]  INFO -- :   Current user: admin (id=1)
I, [2023-11-08T21:32:29.441451 #1]  INFO -- : Completed 500 Internal Server Error in 92ms (ActiveRecord: 16.2ms | Allocations: 25094)
F, [2023-11-08T21:32:29.443825 #1] FATAL -- :   
ActiveRecord::StatementInvalid (Mysql2::Error: Incorrect string value: '\xE2\x80\xA8Mov...' for column 'comments' at row 1):

app/models/repository/git.rb:224:in `save_revision'
app/models/repository/git.rb:212:in `block (2 levels) in save_revisions'
app/models/repository/git.rb:209:in `block in save_revisions'
app/models/repository/git.rb:208:in `each'
app/models/repository/git.rb:208:in `save_revisions'
app/models/repository/git.rb:158:in `fetch_changesets'
app/controllers/repositories_controller.rb:87:in `show'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
plugins/redmine_dmsf/lib/redmine_dmsf/webdav/custom_middleware.rb:54:in `call'

Actions

Also available in: Atom PDF