Malgarida Edoardo | 1 Feb 16:55
Favicon

WebSVN and post-commit hook

My system has the following components:

OS xp –pro sp3
mysql 5.0.51a
PHP 5.3.5
Apache 2.2.21
mantis bt 1.2.28
SVN 1.6.17
websvn 2.3.3
plugins-source-integration 0.13.2-177

I don't succeed in viewing “Diff", "file" and “browse” in changsets and also post-commit doesn't work.

I followed these instructions:

http://blog.crazytje.be/mantis-svn-inte ... the-1-2-x/
http://blog.crazytje.be/mantis-svn-inte ... -the-note/

My post-commit file is this:

<<
#!/bin/sh
# Copyright (c) 2010 John Reese
# Licensed under the MIT license
REPOS="$1"
REV="$2"
log=$(svnlook log -r $REV $REPOS)
URL="file:///C:/server/apache/htdocs/mantis/plugin.php?page=Source/checkin"
PROJECT="bug_repo_test"
LOG_FILE=`mktemp /tmp/svn_${PROJECT}_${REV}_log.XXX`
CURL=C:/php/ext/curl
${CURL} -d "repo_name=${PROJECT}" -d "data=${REV}" ${URL} >> ${LOG_FILE}
>>


best regards, Edoardo from Italy.

 

 

 

 

Edoardo Malgarida

SALVAGNINI ITALIA SpA                               

Via Guido Salvagnini, 51

IT -36040 Sarego

T. +39 0444 72 5111

www.salvagninigroup.com             www.salvagnini.it

 

The information transmitted in this e-mail message or any attachment thereof are classified Salvagnini Italia and are addressed exclusively to the recipient. Any retransmission, diffusion, copy or other use of, or taking of any action relating to  this message by people or entity other than the intended recipient, if not clearly authorized by the sender, is prohibited. If you have received this communication in error, please notify the sender immediately by e-mail or telephone.

 

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mantisbt-help mailing list
mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Alain D'EURVEILHER | 2 Feb 11:55
Picon

Re: WebSVN and post-commit hook

Hi,

I think that your URL content is malformed. It should not be a path, but a real URL.
Try this:
For example, this is what I have for my config:

#######################################
#REPOS="$1"
REPOS="PA_Application"
REV="$2"

CHECKINURL="${MANTISURL}/plugin.php?page=Source/checkin"
CURL="/usr/bin/curl"

DATE=`date +%Y%m%d%H%M%S`
LOGFILE="/tmp/svn/log/svn_postcommit_${REPOS}_${REV}_${DATE}.log"

$CURL -d "repo_name=${REPOS}" -d "data=${REV}" $CHECKINURL >> $LOGFILE

rm -f $LOGFILE
#######################################

Date: Wed, 1 Feb 2012 16:55:41 +0100
From: "Malgarida Edoardo" <edoardo.malgarida <at> salvagninigroup.com>
Subject: [mantisbt-help] WebSVN and post-commit hook
To: <mantisbt-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Message-ID:
   <1ED714C0278A82438BA1B6BDE1E77824032446FD-PN/O/TavLizzf6CITXh7l8MSKv6sbORD544ETxT8DBs@public.gmane.orgigroup.com>
   
Content-Type: text/plain; charset="us-ascii"

My system has the following components:



OS xp -pro sp3
mysql 5.0.51a
PHP 5.3.5
Apache 2.2.21
mantis bt 1.2.28
SVN 1.6.17
websvn 2.3.3
plugins-source-integration 0.13.2-177

I don't succeed in viewing "Diff", "file" and "browse" in changsets and
also post-commit doesn't work.

I followed these instructions:

http://blog.crazytje.be/mantis-svn-inte ... the-1-2-x/
<http://blog.crazytje.be/mantis-svn-integration-in-the-1-2-x/>
http://blog.crazytje.be/mantis-svn-inte ... -the-note/
<http://blog.crazytje.be/mantis-svn-integration-adding-extra-info-to-the
-note/>

My post-commit file is this:

<<
#!/bin/sh
# Copyright (c) 2010 John Reese
# Licensed under the MIT license
REPOS="$1"
REV="$2"
log=$(svnlook log -r $REV $REPOS)
URL="file:///C:/server/apache/htdocs/mantis/plugin.php?page=Source/check
in"
PROJECT="bug_repo_test"
LOG_FILE=`mktemp /tmp/svn_${PROJECT}_${REV}_log.XXX`
CURL=C:/php/ext/curl
${CURL} -d "repo_name=${PROJECT}" -d "data=${REV}" ${URL} >> ${LOG_FILE}



best regards, Edoardo from Italy.









Edoardo Malgarida

--

AlainD.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mantisbt-help mailing list
mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Alain D'EURVEILHER | 2 Feb 12:47
Picon

Re: Mantis SVN integration

Hello,

I cannot explain the formatting link problem in the related changeset note. I'm not sure it is linked with the source control plugin. Maybe due to some setting of your browser (charset, etc...). You can maybe try with other browsers to check. But to be sure that this problem is generic, you can maybe just add a normal new note to your issue #1, writing in the textarea: "Fixes issue #1" and then see what happens.

Second, in order to update also the status of your ticket from open to fixed, you should correctly set your plugin settings:
Bug Fixed Regex Pass 1 must match your text message (Take for example your Bug Link Regex Pass 1 and add to regular expression (Fixes) at the beginning of the expression.
- Check the box "Resolve Fixed Issue" (I think but not sure.)
- And to update also the "Fixed in Version" field during the process you should also map correctly your repository to the Mantis projects. (This is done in the menu "Repositories"). But I don't exactly know how to make this mapping, so I preferred tweak the plugin source code to update this field in all cases.

Regards.
-- 
AlainD.

Date: Tue, 10 Jan 2012 23:38:24 +0100
From: Alessio Gennari <alessio.gennari78-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [mantisbt-help] Mantis SVN integration
To: mantisbt-help <at> lists.sourceforge.net
Message-ID:
       <CAG0sfBWRhTcSoifGNVqAqkyOEdVdsq5GH0x+ps+thSgHxUHZkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Content-Type: text/plain; charset="utf-8"

Hello to everyone,
I'm trying to integrate Mantisbt and Subversion source control. I installed
Mantis, Subversion, WebSVN, Source control Mantis plugin. I hope it is all
the nedeed.

Versions are:

Mantis 1.2.8
WebSVN 2.3.3
Subversion 1.6.12
Source contro plugin 0.16
Php 5.3.8
Apache 2.2.21
Postgres 9.1

The system is a Debian Squeeze 64bit.

A the moment I have created a repository of type WebSVN by plugin, I have
connected it with a subversion repository in the same server, I have
imported the data, I have checked WebSVN functionality and I have created
the first issue to testing the system.

I tried a single commit with this message in comment: "Fixes issue #1"
(without quote)

When i tried to import new data from Subversion repository to Mantis
repository, the reference to issue was correctly detected, but in issue
details, in "Relate Changset" windows, i found this message:

Fixes issue <a href="/mantisbt/view.php?id=1" title="[assigned] Creare
funzione di prova">0000001</a>.


It seems a malformed link to issue deltails page. Why did I find this error?


Moreover, the issue was not committed to resolved. Do Source control plugin
cause auto commit of issues? Or do I need to do other to achieve this goal?

Thanks in advance.

Regards.

Alessio

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
mantisbt-help mailing list
mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Jon Hardcastle | 2 Feb 12:49

Any shred of evidence the issue was deleted.

Hi,

We have a case of a number of 'missing' issues.

I know they once existed as if I look at a snapshot from a year ago
they are present.

The powers that be area talking about how they couldn't have been
deleted and must have been dropped by mantis some how..... and these
ones went missing.. who knows what has also gone missing.

What I need is some events that these issues were deleted.. Is there anything?

Thank you!

--

-- 
----------
N: Jon Hardcastle
E: Jon@...
Q: The avalanche has already started. It is too late for the pebbles to vote.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
Malgarida Edoardo | 3 Feb 08:11
Favicon

SVN and post-commit hook

My system has the following components:

mysql 5.0.51a
PHP 5.3.5
Apache 2.2.21
mantis bt 1.2.28
SVN 1.6.17
websvn 2.3.3
plugins-source-integration 0.13.2-177

I'm in trouble with SVN post-commit hook. I''m working in windows (XP sp3), so the hook script has to be a .bat file written in a windows good code.
in Source plug-in the post-commit.tmpl is written for linux... Who can help me?

Then if I trie to see
http://localhost/mantis/plugin.php?page=Source/checkin I obtain "APPLICATION ERROR #200
A required parameter to this page (api_key) was not found"

 

Edoardo Malgarida

SALVAGNINI ITALIA SpA                               

Via Guido Salvagnini, 51

IT -36040 Sarego

T. +39 0444 72 5111

www.salvagninigroup.com             www.salvagnini.it

 

The information transmitted in this e-mail message or any attachment thereof are classified Salvagnini Italia and are addressed exclusively to the recipient. Any retransmission, diffusion, copy or other use of, or taking of any action relating to  this message by people or entity other than the intended recipient, if not clearly authorized by the sender, is prohibited. If you have received this communication in error, please notify the sender immediately by e-mail or telephone.

 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
mantisbt-help mailing list
mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Alain D'EURVEILHER | 3 Feb 09:56
Picon

Re: WebSVN and post-commit hook

During my tests when installing my system I tried also on a windows machine before, and the hook I had was like the following. Maybe you could try to adapt for your own environment:

<at> ECHO OFF
SETLOCAL

rem SET REPOS=%1
SET REPOS="Test"
SET REV=%2


SET /a LOGFILE=%RANDOM%+100000
SET LOGFILE=svn_%REV%_%LOGFILE:~-5%_log.TMP
SET CURL="C:\webserver\curl\curl-7.21.4\bin\curl.exe"

%CURL% -d "repo_name=%REPOS%" -d "data=%REV%" %CHECKINURL% >> %LOGFILE%

CALL DEL "%LOGFILE%"


I hope it will help.

PS: it is normal that when you tried http://localhost/mantis/plugin.php?page=Source/checkin it did not work because you missed 2 required parameters to the chekin script: the repo_name and the data parameters!

-- 
AlainD.


Date: Fri, 3 Feb 2012 08:11:14 +0100
From: "Malgarida Edoardo" <edoardo.malgarida-DhKxegi6ZjY9FUPbx57eQ0EOCMrvLtNR@public.gmane.org>
Subject: [mantisbt-help] SVN and post-commit hook
To: <mantisbt-help <at> lists.sourceforge.net>
Message-ID:
       <1ED714C0278A82438BA1B6BDE1E7782403244D77-PN/O/TavLizzf6CITXh7l8MSKv6sbORD40lBAcu9F62Zox4op4iWzw@public.gmane.org>

Content-Type: text/plain; charset="us-ascii"

My system has the following components:

mysql 5.0.51a
PHP 5.3.5
Apache 2.2.21
mantis bt 1.2.28
SVN 1.6.17
websvn 2.3.3
plugins-source-integration 0.13.2-177

I'm in trouble with SVN post-commit hook. I''m working in windows (XP
sp3), so the hook script has to be a .bat file written in a windows good
code.
in Source plug-in the post-commit.tmpl is written for linux... Who can
help me?

Then if I trie to see
http://localhost/mantis/plugin.php?page=Source/checkin
<http://localhost/mantis/plugin.php?page=Source/checkin>  I obtain
"APPLICATION ERROR #200
A required parameter to this page (api_key) was not found"



Edoardo Malgarida




--

AlainD.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
mantisbt-help mailing list
mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help
Romain Kopf | 3 Feb 10:43
Picon

LDAP Authentication

Hello,
I want to configure LDAP authentication.
I don't want to put an AD password in plain text in the config_inc.php file. Is it possible to crypt it ?
 
I have an other question : why should I prefer Linux to Windows to install Mantis ?
Are the configuration files the same on the 2 OS ?
Regards,
Airka
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
mantisbt-help mailing list
mantisbt-help@...
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Gmane