Project

General

Profile

Svn diff is using http:// instead of https:// but https is the only option

Added by Miguel Andrade over 7 years ago

I've configured our redmine instance to only use https. It's working fine EXECEPT for showing differences between revisions.

redmine is issuing:

diff -r 328:329 'http://myserver.myhost.com/svn-private/coding/'@329 --no-auth-cache --non-interactive

and then it gets me:

svn: E175011: Repository moved permanently to 'https://myserver.myhost.com/svn-private/coding'; please relocate

And then redmine shows me a "Not found" error page.

The repository browsing and files display is working fine, but when displaing a file I get at the top:

Redirecting to URL 'https://myserver.myhost.com/svn-private/coding/file.txt

any ideia?

Thanks

[EDIT coz getting 500 error if reply]

It seems that it's the same for all svn commands:


Shelling out: 'svn' cat 'http://(...)
Shelling out: 'svn' list --xml 'http://(...)

Fast fix for https (until better solution):

near line 267 of lib/redmine/scm/adapters/subversion_adapter.rb

        def target(path = '')
          base = path.match(/^\//) ? root_url : url
          uri = "#{base}/#{path}" 
          uri = URI.escape(URI.escape(uri), '[]')
+++          uri.gsub! 'http', 'https'
          shell_quote(uri.gsub(/[?<>\*]/, ''))

Replies (3)

RE: Svn diff is using http:// instead of https:// but https is the only option - Added by Toshi MARUYAMA over 7 years ago

I cannot reproduce on vanilla Redmine 3.4.2 to set https://svn.redmine.org/redmine/ .

RE: Svn diff is using http:// instead of https:// but https is the only option - Added by Miguel Andrade over 7 years ago

Sorry,

machine is running debian 7

and...


Environment:
  Redmine version                3.1.0.stable.14595
  Ruby version                   1.9.3-p194 (2012-04-20) [i486-linux]
  Rails version                  4.2.4
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.8.14
  Git                            1.7.10.4
  Filesystem                     
Redmine plugins:
  a_common_libs                  1.1.5
  advanced_roadmap               0.10.1
  redmine_drafts                 0.2.0
  redmine_graphs                 0.1.0
  redmine_highlightjs            1.0.1
  redmine_improved_searchbox     0.0.3
  redmine_local_avatars          1.0.3
  redmine_mail_checker           1.0.0
  redmine_pretend                0.0.3
  redmine_quarter                0.0.6
  redrisk                        1.0.1
  usability                      2.0.0

RE: Svn diff is using http:// instead of https:// but https is the only option - Added by Toshi MARUYAMA over 7 years ago

Ruby 1.9.3-p194 (2012-04-20) is too old.

    (1-3/3)