The Apache Haus Forum

Advanced search  

News:

Welcome to Apache Haus Distribution Forum

Sorry Guest, you are banned from posting and sending personal messages on this forum.
Error: S4296
This ban is not set to expire.
Pages: 1 [2] 3   Go Down

Author Topic: Updating Subversion modules  (Read 13590 times)

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: Updating Subversion modules
« Reply #15 on: September 02, 2015, 11:24:00 AM »

Code: [Select]
#if AP_MODULE_MAGIC_AT_LEAST(20060110,0) /* version where
                                            ap_some_auth_required breaks */
#  if AP_MODULE_MAGIC_AT_LEAST(20120211,47) /* first version with
                                               force_authn hook and
                                               ap_some_authn_required() which
                                               allows us to work without
                                               ap_some_auth_required() */
#    define USE_FORCE_AUTHN 1
#    define IN_SOME_AUTHN_NOTE "authz_svn-in-some-authn"
#    define FORCE_AUTHN_NOTE "authz_svn-force-authn"
#  else
     /* ap_some_auth_required() is busted and no viable alternative exists */
#    ifndef SVN_ALLOW_BROKEN_HTTPD_AUTH
#      error This version of httpd has a security hole with mod_authz_svn
#    else
       /* user wants to build anyway */
#      define USE_FORCE_AUTHN 0
#    endif
#  endif
#else
   /* old enough that ap_some_auth_required() still works */
#  define USE_FORCE_AUTHN 0
#endif

So you need at least 2.4.13
Logged

SimonR

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
Re: Updating Subversion modules
« Reply #16 on: September 02, 2015, 05:01:58 PM »

My apache setup is as follows :

2.4.16 x64
mod_auth_ntlm 1.0.24x
openssl 1.01p
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: Updating Subversion modules
« Reply #17 on: September 03, 2015, 11:51:36 AM »

but I can fire up my 1.90 env if needed for debugging/testing. Any suggestions on how to find out what it is ?

in the test env you can set the log level to debug and see in the logs what is happening.

The only difference I see to my testing was that I compiled snv against OpenSSL 1.0.2 So there might be a problem if the client can't connect. But that is only a guessing. But insce you use the command line that shouldn't be an issue.
since Today there is 1.9.1 you can take a look into http://svn.apache.org/repos/asf/subversion/tags/1.9.1/CHANGES 
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: Updating Subversion modules
« Reply #18 on: September 03, 2015, 11:54:10 AM »

Did you use --username syncuser --password XXXXXXX  for svnsync ?
Logged

SimonR

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
Re: Updating Subversion modules
« Reply #19 on: September 03, 2015, 02:07:58 PM »

I did try with a defined user and password, no change
I also tried setting the Apache LogLevel to Debug on both source and target (Source is live server, target is test mirror server) and there was no log activity in either when the call failed.
Also emphasise that the command that doesn't work on 1.9.0 worked fine on 1.8.13 pointing at the same live server (which is still on 1.7.8 until we upgrade soon)

So
1.7.8 <> 1.8.13 svnsync init command works
1.7.8 <> 1.9.0 svnsync init fails
« Last Edit: September 03, 2015, 02:39:09 PM by SimonR »
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: Updating Subversion modules
« Reply #20 on: September 03, 2015, 02:58:33 PM »

What I did not was creating a new empty repo and synced the old one into the new repo

C:\Users\mario\Apache24\bin>svnsync sync --username mario --password FANCYPASSWORD https://srv8/test_repo https://srv7/orig
Logged

SimonR

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
Re: Updating Subversion modules
« Reply #21 on: September 04, 2015, 09:32:01 AM »

Hmmm ok maybe it's something in the NTLM i am using, which works with 1.8.13. I'll try disabling that and see if I can get it to play ball. Thanks for your help.
Logged

SimonR

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
Re: Updating Subversion modules
« Reply #22 on: September 04, 2015, 11:22:48 AM »

My authentication settings needed adjusting. All working now, loading repository from dump, initialising sync and updating mirror all working. Commits also working now. :-) :)

However to do that I have to have '* = rw' in my AuthzSVNAccessFile
If I attempt to have  '* = r' and specific named users or groups as 'rw', it doesn't allow you to write to the repository :( :(.
It did in SVN 1.8.13
« Last Edit: September 04, 2015, 02:07:47 PM by SimonR »
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: Updating Subversion modules
« Reply #23 on: September 04, 2015, 04:18:47 PM »

The permisison thing seems to be a bit different in 1.9 ( I haven used it in a long time) than I remember it. Take a look at https://svn.apache.org/repos/asf/subversion/branches/1.9.x/subversion/mod_authz_svn/INSTALL

if that doesn't help there is also mod_dontdothat ( don't do that). https://svn.apache.org/repos/asf/subversion/branches/1.9.x/tools/server-side/mod_dontdothat/README
That is also in the apache haus release.

Just as an update: I'm working on 1.9.1
Logged

SimonR

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
Re: Updating Subversion modules
« Reply #24 on: September 04, 2015, 04:30:03 PM »

Thanks for the pointers - I will take a look.  ;D
Logged

dekarsb

  • Newbie
  • *
  • Offline Offline
  • Posts: 7
Re: Updating Subversion modules
« Reply #25 on: September 04, 2015, 07:03:47 PM »

Working here as well with latest Apache and SVN.  THanks Mario!
Logged

m4500

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Re: Updating Subversion modules
« Reply #26 on: October 08, 2015, 08:40:48 PM »

Would it be possible to get mod_svn 1.9.2 x64 for Apache 2.4.x in vc9 ?
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: Updating Subversion modules
« Reply #27 on: October 09, 2015, 10:37:11 AM »

The VC11 modules do load in VC9. I won't build VC9 anymore. it was too hard to keep two operating systems up to date to have two different compiler / VC versions.

Can't you update to VC11 version of apache?
Logged

m4500

  • Newbie
  • *
  • Offline Offline
  • Posts: 3
Re: Updating Subversion modules
« Reply #28 on: October 09, 2015, 04:09:03 PM »

i understand. i'll give the vc11 mod svn module a try. i'm limited to vc9 as mod_wsgi uses python 2.7
Logged

mario

  • Administrator
  • Member Elite
  • *****
  • Offline Offline
  • Posts: 586
Re: Updating Subversion modules
« Reply #29 on: October 10, 2015, 03:07:53 PM »

If that doesn't work out we / I may try to compile mod_wsgi with VC 11. Please let us know if that worked.
Logged
Pages: 1 [2] 3   Go Up
 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13