Project

General

Profile

Actions

Defect #2571

closed

Repository not selectable in Project Settings

Added by Georg Nagel over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Projects
Target version:
-
Start date:
2009-01-24
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Hi,
if i select an repository from the select, an ajax request ist made and the same select-element comes back.
so i cant choose a repository. perhaps i did smth wrong.
the request uri: http://slacktop/redmine/repositories/edit/ymisms?repository_scm=Cvs
here is the ajax response from onchange:

Element.update("tab-content-repository", "\u003Cform action=\"/redmine/repositories/edit/ymisms\" method
=\"post\" onsubmit=\"new Ajax.Request('/redmine/repositories/edit/ymisms', {asynchronous:true, evalScripts
:true, parameters:Form.serialize(this)}); return false;\"\u003E\n\n\n\n\u003Cdiv class=\"box tabular
\"\u003E\n\u003Cp\u003E\u003Clabel\u003ESCM\u003C/label\u003E\u003Cselect id=\"repository_scm\" name
=\"repository_scm\" onchange=\"new Ajax.Request('/redmine/repositories/edit/ymisms', {asynchronous:true
, evalScripts:true, method:'get', parameters:Form.serialize(this.form)})\"\u003E\u003Coption value=\" 
\"\u003E--- Please select ---\u003C/option\u003E\n\u003Coption value=\"Subversion\"\u003ESubversion\u003C
/option\u003E\n\u003Coption value=\"Darcs\"\u003EDarcs\u003C/option\u003E\n\u003Coption value=\"Mercurial
\"\u003EMercurial\u003C/option\u003E\n\u003Coption value=\"Cvs\"\u003ECVS\u003C/option\u003E\n\u003Coption
 value=\"Bazaar\"\u003EBazaar\u003C/option\u003E\n\u003Coption value=\"Git\"\u003EGit\u003C/option\u003E
\u003C/select\u003E\u003C/p\u003E\n\n\u003C/div\u003E\n\n\u003Cdiv class=\"contextual\"\u003E\n\n\u003C
/div\u003E\n\n\u003Cinput disabled=\"disabled\" name=\"commit\" type=\"submit\" value=\"Create\" /\u003E
\n\u003C/form\u003E\n");

script/about:

About your application's environment
Ruby version              1.8.7 (i486-linux)
RubyGems version          1.3.1
Rails version             2.1.2
Active Record version     2.1.2
Action Pack version       2.1.2
Active Resource version   2.1.2
Action Mailer version     2.1.2
Active Support version    2.1.2
Application root          /var/www/redmine
Environment               development
Database adapter          mysql


Files

production.log (2.21 KB) production.log Georg Nagel, 2009-01-24 11:02
Actions #1

Updated by Georg Nagel over 16 years ago

ok i sent the form "onsubmit" manually via firebug

new Ajax.Request('/redmine/repositories/edit/ymisms', {asynchronous:true, evalScripts:true, parameters:'repository_scm=Git'});

then i become an error "you have to define a url" or something
but now i got a form and could add my repository :)

Actions #2

Updated by Jean-Philippe Lang over 16 years ago

I'm not able to reproduce.
Please post the application log.

Actions #3

Updated by Georg Nagel over 16 years ago

Here's the complete log. creating project + trying to choose a SCM. the last item in the log just gives the the select response as posted above
perhaps its cause im running in an subdir (/redmine/) ? for that i put "ActionController::AbstractRequest.relative_url_root = "/redmine"" into environment.rb. perhaps it has somthing to do with it ?

Actions #4

Updated by Jean-Philippe Lang over 16 years ago

Thanks.

Parameters: {"action"=>"edit", "id"=>"asdfasdf", "controller"=>"repositories", "repository_scm"=>"Cvs.html"}

I'm wondering why repository_scm paramter is "Cvs.html", any idea about that?
It should be "Cvs", that's why Redmine does not recognize it and doesn't show the appropriate form.

Actions #5

Updated by Georg Nagel over 16 years ago

  • Status changed from New to Resolved

ahh okey that must be the rewrite rule of lighttpd then:
i modiefied that from conf/lighttpd.conf:

url.rewrite = ( "^/$" => "index.html", "^([^.]+)$" => "$1.html" )

here is my block of redmine in my config:
url.rewrite-once += (
  "^/redmine/$" => "/redmine/index.html", "^/redmine/([^.]+)$" => "/redmine/$1.html",
  "^/redmine/(stylesheets|javascripts|images|themes)/(.*)$" => "/redmine/public/$1/$2" 
)     
$HTTP["url"] =~ "^/redmine/" {
        $HTTP["url"] !~ "^/redmine/public" {
                proxy-core.protocol = "fastcgi" 
                proxy-core.allow-x-sendfile = "enable" 
                proxy-core.backends = ( "localhost:9001", "localhost:9002", "localhost:9003" )
                proxy-core.max-pool-size = 16
        }
}

That fixed it:

url.rewrite-once += (
        # first the static
        "^/redmine/(stylesheets|javascripts|images|themes)/(.*)$" => "/redmine/public/$1/$2",
        # dont forget the query string :)
        "^/redmine/$" => "/redmine/index.html", "^/redmine/([^.?]+)(.*)$" => "/redmine/$1.html$2" 

)

its lighttpd 1.5 btw

thx for your help

Actions #6

Updated by Jean-Philippe Lang over 16 years ago

  • Status changed from Resolved to Closed

Indeed.

Actions #7

Updated by Jean-Philippe Lang over 16 years ago

  • Affected version (unused) deleted (0.8.0)
  • Resolution set to Invalid
Actions

Also available in: Atom PDF