プロジェクト

全般

プロフィール

Vote #62457

未完了

better mercurial integration with hgweb

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
SCM extra_46
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
46
version_id:
0
issue_org_id:
460
author_id:
204
assigned_to_id:
0
comments:
5
status_id:
1
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

the svn integration is very nice - something like that would be great for mercurial as well.


journals

isn't it possible to re-use the subversion parts for access control?
i played around with it but my perl skills are by far not good enough to get this working.

I tried it like this:
<pre>
ScriptAliasMatch ^/hg(.*) /path/to/repos/hg/hgwebdir.cgi$1
<Directory /path/to/repos/hg/>
Options ExecCGI FollowSymLinks
AllowOverride None
AuthType Basic
AuthName redmine
Require valid-user
PerlAccessHandler Apache::Authn::Redmine::access_handler
# PerlAuthenHandler Apache::Authn::Redmine::authen_handler
PerlSetVar dsn DBI:Pg:dbname=redmine;host=myhost
PerlSetVar db_user redmine
PerlSetVar db_pass mypassword
# AuthBasicAuthoritative Off
</Directory>
</pre>

I get the following error:
<pre>
[error] Internal error: pcfg_openfile() called with NULL filename
</pre>

After asking google, the problem seems to be that both, hgwebdir.cgi as well as the PerlAccessHandler from redMine want to control the authentication. Unfortunately it doesn't help to set "AuthBasicAuthoritative Off".

I think this would be a great addition to redmine. Maybe this is no real problem for someone with better perl skills...

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
[[repositories_access_control_with_apache_mod_dav_svn_and_mod_perl#Apache-configuration-for-Mercurial-repositories|Apache configuration for Mercurial repositories]]

Can it be marked as Resolved?

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約2年前に更新

  • カテゴリSCM extra_46 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0