https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292016-07-06T12:16:30ZRedmineRedmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720382016-07-06T12:16:30ZMarco Descher
<ul></ul><p>The error occurs if <a class="external" href="https://github.com/elexis/elexis-3-core">https://github.com/elexis/elexis-3-core</a> is defined as main repository. If I select a different one, the page opens as expected.</p>
<p>So I guess, that there has to be something within this repository that provokes the resp. error.</p> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720392016-07-06T12:29:59ZToshi MARUYAMA
<ul><li><strong>Category</strong> set to <i>SCM</i></li></ul> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720402016-07-06T12:32:16ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul><p>Please see <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/Submissions">submissions</a>.</p> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720412016-07-06T12:34:29ZMarco Descher
<ul></ul><p>Environment:<br /> Redmine version 3.2.3.stable<br /> Ruby version 1.9.3-p194 (2012-04-20) [x86_64-linux]<br /> Rails version 4.2.5.2<br /> Environment production<br /> Database adapter Mysql2<br />SCM:<br /> Mercurial 3.1.2<br /> Git 2.1.4<br /> Filesystem <br />Redmine plugins:<br /> redmine_agile 1.4.1<br /> redmine_lightbox2 0.2.7<br /> redmine_mylyn_connector 2.8.2.stable<br /> redmine_xapian 1.6.5</p> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720422016-07-06T12:51:51ZMarco Descher
<ul></ul><p>Is there anything else I can provide? Rails etc. was satisfied with <code>bundle install</code> as documented.</p> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720472016-07-07T01:59:52ZToshi MARUYAMA
<ul></ul><p>Marco Descher wrote:</p>
<blockquote>
<p>The error occurs if <a class="external" href="https://github.com/elexis/elexis-3-core">https://github.com/elexis/elexis-3-core</a> is defined as main repository.</p>
</blockquote>
<p>What do you mean?<br />Repository which Redmine use needs to be local bare repository.</p> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720482016-07-07T05:19:46ZMarco Descher
<ul></ul><p>Certainly, the given repository is configured in reference to a localy stored bare repository.</p>
<p>The problem is, that I am not even able to delete the repository or edit it</p>
<p>When calling <a class="external" href="https://xyz.foo.bar/repositories/18/edit">https://xyz.foo.bar/repositories/18/edit</a> for example (which is my config page for this repo), I get</p>
<pre>
Started GET "/repositories/18/edit" for 11.111.111.111 at 2016-07-07 07:18:22 +0200
Processing by RepositoriesController#edit as HTML
Parameters: {"id"=>"18"}
Current user: mmmmmmmm (id=1)
Rendered repositories/_form.html.erb (7.3ms)
Rendered repositories/edit.html.erb within layouts/base (7.8ms)
Completed 500 Internal Server Error in 15ms (ActiveRecord: 1.8ms)
Psych::SyntaxError ((<unknown>): found unexpected end of stream while scanning a quoted scalar at line 1439 column 7):
app/models/repository.rb:160:in `extra_info'
app/models/repository/git.rb:46:in `extra_report_last_commit'
lib/redmine/views/labelled_form_builder.rb:34:in `check_box'
app/helpers/repositories_helper.rb:187:in `git_field_tags'
app/helpers/repositories_helper.rb:126:in `repository_field_tags'
app/views/repositories/_form.html.erb:24:in `_app_views_repositories__form_html_erb___3399130854494555240_69874500697560'
app/views/repositories/edit.html.erb:4:in `block in _app_views_repositories_edit_html_erb__413569635340657674_69874499119060'
app/helpers/application_helper.rb:1031:in `labelled_form_for'
app/views/repositories/edit.html.erb:3:in `_app_views_repositories_edit_html_erb__413569635340657674_69874499119060'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
</pre> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720492016-07-07T05:22:08ZMarco Descher
<ul></ul><p>The same goes for delete</p>
<pre>
Started DELETE "/repositories/18" for 11.111.111.111 at 2016-07-07 07:21:10 +0200
Processing by RepositoriesController#destroy as HTML
Parameters: {"authenticity_token"=>"mmmmmmmm/mmmmmmmm+mmmmmmmm==", "id"=>"18"}
Current user: mmmmmmmm (id=1)
Completed 500 Internal Server Error in 128ms (ActiveRecord: 110.8ms)
Psych::SyntaxError ((<unknown>): found unexpected end of stream while scanning a quoted scalar at line 1439 column 7):
app/models/repository.rb:160:in `extra_info'
app/models/repository/git.rb:248:in `clear_extra_info_of_changesets'
app/models/repository/git.rb:260:in `clear_changesets'
app/controllers/repositories_controller.rb:109:in `destroy'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'
</pre> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720512016-07-07T09:37:33ZToshi MARUYAMA
<ul><li><strong>Subject</strong> changed from <i>Psych::SyntaxError ((<unknown>): found unexpected end of stream while scanning a quoted scalar</i> to <i>git: unable to delete from setting if extra_info is invalid</i></li><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>New</i></li></ul> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720522016-07-07T09:38:25ZToshi MARUYAMA
<ul><li><strong>Subject</strong> changed from <i>git: unable to delete from setting if extra_info is invalid</i> to <i>git: unable to edit and delete from setting if extra_info is invalid</i></li></ul> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=720532016-07-07T09:48:22ZToshi MARUYAMA
<ul></ul><p>I don't know why extra_info had broken.<br />Try "Repsotiry.find(18).clear_extra_info_of_changesets" from rails console.<br />Or clear extra_info from MySQL console.</p> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=721372016-07-12T06:34:36ZMarco Descher
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li></ul><p>Thanks for your help. I deleted the extra_info table in the MySQL database and re-executed the git indexing. Now the problem is gone!</p> Redmine - Defect #23262: git: unable to edit and delete from setting if extra_info is invalidhttps://www.redmine.org/issues/23262?journal_id=721382016-07-12T06:42:07ZToshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Thank you for your feedback.</p>