https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-02-04T18:55:39ZRedmineRedmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=140082010-02-04T18:55:39ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>I can't reproduce. Project settings with a svn repository configured display just fine.</p>
<blockquote>
<p>How can I help you ?</p>
</blockquote>
<p>You can provide the information requested in <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/SubmittingBugs">SubmittingBugs</a>.</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=140342010-02-05T13:21:25Zthe abstrak
<ul></ul><p>NOTE: I had already followed all steps from : <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/RedmineUpgrade">RedmineUpgrade</a></p>
<p>Below are the <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/SubmittingBugs">SubmittingBugs</a> information requested:</p>
<p><ins>I thought I found the problem : rubygem-rails-2.3.4.</ins></p>
<p><em>The FreeBSD port of redmine-0.9.1 don't depends on rubygem-rails at all (on debian it is).<br />And the latest current stable port of rubygem-rails on FreeBSD is 2.3.4.<br />Perhaps because rubygem-rails-2.3.5 is <strong>not</strong> currently released officially as I can see.</em></p>
<p><em>Redmine FreeBSD port (Maintained by: <a class="email" href="mailto:decke@bluelife.at">decke@bluelife.at</a>) depends on :<br />libiconv-1.13.1, mysql-client-5.0.89, ruby+nopthreads-1.8.7.248,1, ruby18-gems-1.3.5, ruby18-iconv-1.8.7.248,1, ruby18-mysql-2.8.1, rubygem-rake-0.8.7.</em></p>
My packages (ports) version:
<ul>
<li><ins>postgresql-server-8.3.9</ins></li>
<li><ins>redmine-0.9.1</ins></li>
<li><ins>ruby+nopthreads-1.8.7.248</ins></li>
<li>ruby18-gems-1.3.5</li>
<li>ruby18-iconv-1.8.7.248</li>
<li>ruby18-pg-0.8.0</li>
<li>rubygem-pg-0.8.0</li>
<li>rubygem-postgres-0.7.9.2008.01.28</li>
<li>rubygem-rack-1.0.1</li>
<li><ins>rubygem-rails-2.3.4</ins></li>
<li><ins>rubygem-rake-0.8.7</ins></li>
</ul>
<p>After installing rubygem-rails-2.3.5 (not from the FreeBSD port):<br /><pre>
gem install rails -v=2.3.5
</pre></p>
<p>I still have the same problem. I migrated my install once again to be sure... But still the same...</p>
<p>Output of ruby script/about:<br /><pre>
About your application's environment
Ruby version 1.8.7 (amd64-freebsd7)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /usr/local/www/redmine
Environment development
Database adapter postgresql
Database schema version 20091227112908
About your Redmine plugins
Redmine2mite 0.1
</pre></p>
<p>What can I try now ?</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=140362010-02-05T13:58:54Zthe abstrak
<ul></ul><blockquote>
<p>What can I try now ?</p>
</blockquote>
Another obvious thing (with current 0.9.1 and rails 2.3.5):
<ul>
<li>Create a new "Test" project.</li>
<li>Add a subversion repository.</li>
<li>Try to view the repository: <strong>OK</strong>.</li>
<li><ins>Try to view this new project's Settings : <strong>KO</strong>!</ins></li>
</ul>
Repository settings:
<ul>
<li>SCM : Subversion.</li>
<li>URL : <a class="external" href="https://homer/Blabla/trunk/Projects/Blabla/Blabla">https://homer/Blabla/trunk/Projects/Blabla/Blabla</a> (host "homer" on local network)</li>
<li>Login : redmine (we have a special login for redmine only)</li>
<li>Pass : <em>something autogenerated with low-case, upper-case and digits. Lenght:20 chars</em>.</li>
</ul>
<p>Same problem : Can browse Repository from redmine but can't view the Settings page !</p>
<p><em>NOTE1: All others projects without repository can show me the Settings page (same as before).</em><br /><em>NOTE2: Our redmine and subversion server is apache.</em></p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=140972010-02-08T11:10:28Zthe abstrak
<ul></ul><p><em>NOTE: I upgraded passenger from 2.2.5 to 2.2.8 today... Always the same problem...</em></p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=141022010-02-08T14:12:14Zthe abstrak
<ul></ul><p>If I remove <ins>" && !repository.root_url.blank?"</ins> from line 149 of app/helpers/repositories_helper.rb, the project's settings page <ins>can be displayed</ins>.</p>
That's my repository settings values in DB :
<ul>
<li>url : <em><a class="external" href="https://homer/liberty/trunk/Projects/Experiments/OAIIntegration/">https://homer/liberty/trunk/Projects/Experiments/OAIIntegration/</a></em></li>
<li>root_url : <em><a class="external" href="https://homer/liberty">https://homer/liberty</a></em></li>
</ul>
<p>NOTE:The root_url point to the base subversion repository hosted by apache on the same host (homer) with basic authentication and DAV svn.</p>
<p>These values are correct or is there a db update problem during migration ?</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=154332010-03-24T20:16:09ZMarko Roeder
<ul></ul><p>I have the same problem with a git repository. It can be viewed in the repository view but once you leave the settings page after setting the repository you cannot open it again.</p>
<p>I also have the same configuration (redmine 0.9.1 [3608], rails 2.3.5, ruby 1.8.7) and from the error message I guess it could be because I am running a local repository (without host): /var/git/my-project.git</p>
<p>Before updating from redmine 0.8.7 to 0.9.1 all was fine!</p>
<p>Here is the log file:<br /><pre>
ActionView::TemplateError (Missing host to link to! Please provide :host parameter or set default_url_options[:host]) on line #10 of app/views/projects/settings/_repository.rhtml:
7:
8: <div class="box tabular">
9: <p><%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %></p>
10: <%= repository_field_tags(f, @repository) if @repository %>
11: </div>
12:
13: <div class="contextual">
(eval):20:in `root_url'
app/helpers/repositories_helper.rb:167:in `git_field_tags'
app/helpers/repositories_helper.rb:124:in `send'
app/helpers/repositories_helper.rb:124:in `repository_field_tags'
app/views/projects/settings/_repository.rhtml:10:in `_run_rhtml_app47views47projects47settings47_repository46rhtml_locals_object_repository_tab'
app/views/projects/settings/_repository.rhtml:1:in `_run_rhtml_app47views47projects47settings47_repository46rhtml_locals_object_repository_tab'
app/views/common/_tabs.rhtml:24:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
app/views/common/_tabs.rhtml:23:in `each'
app/views/common/_tabs.rhtml:23:in `_run_rhtml_app47views47common47_tabs46rhtml_locals_object_tabs'
app/helpers/application_helper.rb:180:in `render_tabs'
app/views/projects/settings.rhtml:3:in `_run_rhtml_app47views47projects47settings46rhtml'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:358:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in `start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
</pre></p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=154342010-03-24T20:18:31ZMarko Roeder
<ul></ul><p>Sorry, redmine is 0.9.3 with rev 3608, not 0.9.1!</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=231642010-12-14T08:09:52ZTerence Mill
<ul></ul><p>After updating Eric Davis question plugin to todays trunk i also get a similar error message in error.log after submitting issuee question.</p>
<p>ActionView::TemplateError (Missing host to link to! Please provide :host parameter or set default_url_options[:host]) on line <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: table_name_pre/suffix support (Closed)" href="https://www.redmine.org/issues/18">#18</a> of app/views/issues/_history.rhtml:</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=242262011-01-18T08:06:19ZSimon Hürlimann
<ul></ul><p>Still present with version 1.0.0 and rails 2.3.5.</p>
<p>I'm able to fix the problem by replacing the <em>repository.root_url.blank?</em> calls in repositories_helper.rb with <em>repository[:root_url].blank?</em> calls. For me it looks like the Repository objects <em>root_url</em> column should be used, but somehow the root_url method is defined otherwise. Using the []-way of accessing the attribute instead of the method is thus needed.</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=242472011-01-18T16:03:55ZMarko Roeder
<ul><li><strong>File</strong> <a href="/attachments/5167">repository_patch.diff</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/5167/repository_patch.diff">repository_patch.diff</a> added</li></ul><p>There is also another fix you can apply and it is a one-liner!<br />Add the following code to the Repository model (app/models/repository.rb):</p>
<pre><code>default_url_options[:host] = 'localhost'</code></pre>
<p>I added it right before the line that checks SCM ("# Checks if the SCM is enabled when creating a repository").</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=242612011-01-19T00:37:26ZToshi MARUYAMA
<ul><li><strong>Category</strong> set to <i>SCM</i></li></ul> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=304532011-07-03T01:36:06ZToshi MARUYAMA
<ul><li><strong>Affected version (unused)</strong> changed from <i>0.9.1</i> to <i>0.9.0</i></li><li><strong>Affected version</strong> changed from <i>0.9.1</i> to <i>0.9.0</i></li></ul> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=328152011-10-12T11:17:35ZFlorian A.
<ul></ul><p>I'm having the same issue on Remine version 1.2 ("stable" branch from subversion). Applying the patch from comment <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: not work administration-menu with prefix-url (Closed)" href="https://www.redmine.org/issues/10">#10</a> fixes it.</p> Redmine - Defect #4725: Error displaying Project's Settings when repository configuredhttps://www.redmine.org/issues/4725?journal_id=328192011-10-12T12:33:35ZEtienne Massip
<ul></ul><p>Terence suggested it might be a plugin interference, could you please try without any?</p>