Actions
Defect #2246
closedProblem on acessing Subversion repository using JRuby
Start date:
2008-11-29
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Hi folks!
My enviroment is:
Redmine 0.7.3 [with a few mods on 001_setup.rb and 091 migrate files] JRuby 1.1.4 (with Ruby 1.8.6 patchlevel 114) Rails 2.2.2 Oracle Database XE ocj14.jar (JDBC connector) Subversion 1.5.4
All steps on configuring and installing were made sucessfuly!
I can run Redmine with Oracle with no problems at all.
My problem resides on configuring a Subversion repositorie to be viewed on Redmine.
When a list the repositorie on tab appropriate, i get the following message:
The entry or revision was not found in the repository.
The log shows this problem:
Processing RepositoriesController#show (for 127.0.0.1 at 2008-11-29 08:31:38) [G ET] Session ID: 4d494983c2d1550844902d331ac6585d Parameters: {"controller"=>"repositories", "action"=>"show", "id"=>"sim2"} ←[4;35;1mSQL (0.001251)←[0m ←[0mSELECT max(updated_on) AS max_updated_on FRO M settings ←[0m ←[4;36;1mUser Load (0.001734)←[0m ←[0;1mSELECT * FROM users WHERE (status = 1) AND (users.id = 10000) ←[0m ←[4;35;1mProject Load (0.002914)←[0m ←[0mselect * from (select raw_sql_.*, r ownum raw_rnum_ from (SELECT * FROM projects WHERE (projects.identifier = 'sim2' ) ) raw_sql_ where rownum <= 1) where raw_rnum_ > 0←[0m ←[4;36;1mRepository Load (0.001888)←[0m ←[0;1mselect * from (select raw_sql_ .*, rownum raw_rnum_ from (SELECT * FROM repositories WHERE (repositories.projec t_id = 10000) ) raw_sql_ where rownum <= 1) where raw_rnum_ > 0←[0m ←[4;35;1mEnabledModule Load (0.001719)←[0m ←[0mSELECT * FROM enabled_modules WHERE (enabled_modules.project_id = 10000) ←[0m ←[4;36;1mSetting Load (0.001567)←[0m ←[0;1mselect * from (select raw_sql_.*, rownum raw_rnum_ from (SELECT * FROM settings WHERE (settings.name = 'autofetch _changesets') ) raw_sql_ where rownum <= 1) where raw_rnum_ > 0←[0m Shelling out: svn info --xml 'svn://localhost/sedes/' ←[4;35;1mRepository::Subversion Update (0.005132)←[0m ←[0mUPDATE repositorie s SET login = null, password = null, project_id = 10000, root_url = null, type = 'Subversion', url = 'svn://localhost/sedes' WHERE id = 10006←[0m Shelling out: svn info --xml 'svn://localhost/sedes/' --------------> Processing RepositoriesController#show (for 127.0.0.1 at 2008-11-29 12:17:23) [G ET] Session ID: db88113e3bb54dbb3a80b88a4405eaa5 Parameters: {"controller"=>"repositories", "action"=>"show", "id"=>"sss1"} Error parsing svn output: #<REXML::ParseException: No close tag for /lists/list> C:/Java/jruby/lib/ruby/1.8/rexml/parsers/treeparser.rb:27:in `parse' C:/Java/jruby/lib/ruby/1.8/rexml/document.rb:204:in `build' C:/Java/jruby/lib/ruby/1.8/rexml/document.rb:42:in `initialize' C:/Java/jruby/apps/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:65:in `entries' C:/Java/jruby/apps/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:127:in ` call' C:/Java/jruby/apps/redmine/lib/redmine/scm/adapters/abstract_adapter.rb:127:in ` shellout' <script>:1:in `shellout' C:/Java/jruby/apps/redmine/lib/redmine/scm/adapters/subversion_adapter.rb:62:in `entries' C:/Java/jruby/apps/redmine/app/models/repository.rb:52:in `entries' C:/Java/jruby/apps/redmine/vendor/rails/activerecord/lib/active_record/associati ons/association_proxy.rb:125:in `method_missing' C:/Java/jruby/apps/redmine/app/controllers/repositories_controller.rb:55:in `sho w' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb :1158:in `perform_action' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/filters .rb:697:in `call_filters' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/filters .rb:689:in `perform_action_with_filters' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/benchma rking.rb:68:in `perform_action_with_benchmark' C:/Java/jruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/benchma rking.rb:68:in `perform_action_with_benchmark' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/rescue. rb:199:in `perform_action_with_rescue' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/caching .rb:678:in `perform_action_with_caching' C:/Java/jruby/apps/redmine/vendor/rails/activerecord/lib/active_record/connectio n_adapters/abstract/query_cache.rb:33:in `cache' C:/Java/jruby/apps/redmine/vendor/rails/activerecord/lib/active_record/query_cac he.rb:8:in `cache' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/caching .rb:677:in `perform_action_with_caching' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb :524:in `process' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/filters .rb:685:in `process_with_filters' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/session _management.rb:123:in `process_with_session_management_support' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/base.rb :388:in `process' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatc her.rb:171:in `handle_request' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatc her.rb:115:in `dispatch' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatc her.rb:126:in `dispatch_cgi' C:/Java/jruby/apps/redmine/vendor/rails/actionpack/lib/action_controller/dispatc her.rb:9:in `dispatch' C:/Java/jruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/bin/../lib/mongrel/rails .rb:76:in `process' C:/Java/jruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/bin/../lib/mongrel/rails .rb:74:in `process' C:/Java/jruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:159:in `p rocess_client' C:/Java/jruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:158:in `e ach' C:/Java/jruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:158:in `p rocess_client' C:/Java/jruby/lib/ruby/gems/1.8/gems/mongrel-1.1.5-java/lib/mongrel.rb:285:in `r un' :1:in `initialize' ... No close tag for /lists/list Line: Position: Last 80 unconsumed characters: Output was: <?xml version="1.0"?> <lists> <list path="'svn://localhost/sedes/'"> Rendering template within layouts/base Completed in 0.68464 (1 reqs/sec) | Rendering: 0.10284 (15%) | DB: 0.00000 (0%) | 500 Internal Server Error [http://localhost/repositories/show/sss1]
At a first view, can be inferred that the problem is on URL format, that added a apos simbol before and after the text.
This occurs because of Oracle, that considers strings in such format: 'nonono'
My question is: Is there some way to avoid this problem?
I really need to use Oracle DB and also need Subversion version control System to be used.
Thanks for help!
Actions