List:Eventum General Discussion« Previous MessageNext Message »
From:Elan Ruusamäe Date:January 17 2005 6:54pm
Subject:Re: Eventum 1.4 SCM Integration
View as plain text  
i got it so far working, that the new checkin is added to issue, after i've 
changed the php script to base encode all params

and that history add line i commented out, because i looked database does not 
contain that id.

the patch is attached ;)


On Monday 17 January 2005 20:29, Tamara Harpster wrote:
> Yes, in the 1.4 version the CVS script is in PHP. For previous versions, it
> is in Perl.
>
> I get no errors reported and no errors reported in the SQL, probably
> because it doesn't make it that far. I believe my problem is that the
> filename(s) are being read for the module name and the filename isn't being
> included at all.
>
> Hmm, that led to a thought, maybe the problem was just checking in one
> file. However, I just tried that with 2 files and also checking in at the
> directory level and the problem still exists.
>
> Here's what I received in Apache, it looks like it picks up the first file
> for the module name, but still doesn't pick up the other file:
>
> 167.225.26.129 - - [17/Jan/2005:10:20:58 -0800] "GET
> /eventum/scm_ping.php?module=build.xml&username=harpstert
> &commit_msg=YWRkaW5nIGluIEV2ZW50dW0gaW50ZWdyYXRpb24gd2l0aCAgKGlzc3VlOiAxMjU
>pIENWUywgZG9pbmcgYSB0ZXN0Cg== &issue[]=125 HTTP/1.1" 200 -
>
> And here is what was in the commitlog:
>
> uid=1000(developer) gid=63(developer)
> build.xml 1.9 1.10 readme.txt 1.30 1.31
> Mon Jan 17 10:20:58 PST 2005
> Update of /DEEP/deep
> In directory tyra:/tmp/cvs-serv10025
>
> Modified Files:
>         build.xml readme.txt
> Log Message:
> adding in Eventum integration with  (issue: 125) CVS, doing a test
>
> This line was used in loginfo to gather the data:
> ALL (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog
>
> Tamara Harpster
>
>
>  --- On Mon 01/17, Elan =?iso-8859-1?q?Ruusam=E4e?= < glen@stripped >
> wrote: From: Elan =?iso-8859-1?q?Ruusam=E4e?= [mailto: glen@stripped]
> To: eventum-users@stripped
> Date: Mon, 17 Jan 2005 15:07:48 +0200
> Subject: Re: Eventum 1.4 SCM Integration
> hi
>
> i have here also problems with the ingegration
>
> strange, is that i found php script, not perl from 1.4 distribution.
>
> and the scm_ping.php url to it posts, expects all parameters as in base64
> encoded. i did that change to misc/scm/process_cvs_commits.php, so that ALL
> params are passed as base64 encoded.
>
> but now i get another error:
>
> An error was found at 01/17/2005 15:02:32 (1105966952) on line '102' of
> script '/usr/share/eventum/include/class.history.php'.
>
> The error message passed to us was:
>
> 'DB Error: syntax error'
>
> A more detailed error message follows:
>
> 'INSERT INTO
> eventum.eventum_issue_history
> (
> his_iss_id,
> his_usr_id,
> his_created_date,
> his_summary,
> his_htt_id) VALUES (
> 1,
> 1,
> '2005-01-17 13:02:32',
> 'SCM Checkins associated by SCM user \'glen\'.',
> ) [nativecode=1064 ** You have an error in your SQL
> syntax. Check the manual that corresponds to your MySQL server version for
> the right syntax to use near ')' at line 13]'
>
> That happened on page '/eventum/scm_ping.php' from IP Address 'XXX' coming
> from the page (referrer) ''.
>
> On Monday 17 January 2005 00:35, John Mortlock wrote:
> > Make sure you checked out the module CVSROOT from your CVS repository and
> > modify the loginfo file.
> >
> > I addeed the following to get mine working (using the perl version)
> > ALL /usr/local/bin/perl /usr/home/cvs/CVSROOT/process_commits.pl $USER
> > %{sVv}
> >
> > Once you changed the loginfo file you must commit it for the changes to
> > take affect.
> >
> > You also need to modify the process_commits.pl file to point to the
> > correct hostname my $domain = 'mydomain.com';
> >
> > and if you don't use the default installation change the following line
> > my $ping_url = '/eventum/scm_ping.php';
> >
> > Hope this helps
> >
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Tamara Harpster [mailto:tharpster@stripped]
> > Sent: Mon 1/17/2005 4:11 AM
> > To: eventum-users@stripped
> > Subject: RE: Eventum 1.4 SCM Integration
> >
> >
> > For the server, CVS 1.12.8 on a Solaris box
> >
> >
> >
> > For the Client, TortoiseCVS 1.8.11 on a Windows box. Currently, our
> > primary check-ins would occur on Windows boxes and probably with
> > TortoiseCVS.
> >
> >
> >
> > I'd try and do some more debugging myself to find the problem, but a
> > couple of other projects have popped up that I need to work on. If you'd
> > like to send me a debug script, let me know, I'd be glad to try it out.
> >
> >
> >
> > Tamara Harpster
> >
> >
> >
> >
> >
> > --- On Sat 01/15, Joao Prado Maia < jpm@stripped > wrote:
> >
> > From: Joao Prado Maia [mailto: jpm@stripped]
> >
> > To: eventum-users@stripped
> >
> > Date: Sat, 15 Jan 2005 10:57:55 -0600
> >
> > Subject: RE: Eventum 1.4 SCM Integration
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Tamara,
> >
> > > Just tried that, in a couple of different ways, still didn't
> > >
> > > work. I tried with the Issue at the front and end of the
> > >
> > > message and once in the middle. I forget why I went to
> > >
> > > brackets, sigh, but going back to parenthesis still doesn't
> > >
> > > work. With the brackets or parens, I get the same type of
> > >
> > > results as noted below. When I sent either bracket or parens
> > >
> > > within a regular expression parser, it found the containing
> > >
> > > issue: 125, but didn't match exactly
> >
> > What is the version of CVS that you are running now? Maybe this is
> > something
> >
> > that only happens with a newer version or something.
> >
> >
> >
> > --Joao
> >
> >
> >
> >
> >
> > --
> >
> > Eventum Users Mailing List
> >
> > For list archives: http://lists.mysql.com/eventum-users
> >
> > To unsubscribe:
> > http://lists.mysql.com/eventum-users?unsub=1
> >
> > _______________________________________________
> > Join Excite! - http://www.excite.com
> > The most personalized portal on the Web!
>
> --
> glen
>
> --
> Eventum Users Mailing List
> For list archives: http://lists.mysql.com/eventum-users
> To unsubscribe:
> http://lists.mysql.com/eventum-users?unsub=1
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!

-- 
glen

Attachment: [text/x-diff] encode.patch
Thread
Eventum 1.4 SCM IntegrationTamara Harpster11 Jan
RE: Eventum 1.4 SCM IntegrationTamara Harpster11 Jan
  • RE: Eventum 1.4 SCM IntegrationJoao Prado Maia11 Jan
RE: Eventum 1.4 SCM IntegrationTamara Harpster11 Jan
  • RE: Eventum 1.4 SCM IntegrationJoao Prado Maia15 Jan
RE: Eventum 1.4 SCM IntegrationTamara Harpster16 Jan
RE: Eventum 1.4 SCM IntegrationJohn Mortlock16 Jan
  • Re: Eventum 1.4 SCM IntegrationElan Ruusamäe17 Jan
    • Re: Eventum 1.4 SCM IntegrationElan Ruusamäe17 Jan
Re: Eventum 1.4 SCM IntegrationTamara Harpster17 Jan
  • Re: Eventum 1.4 SCM IntegrationElan Ruusamäe17 Jan
    • RE: Eventum 1.4 SCM IntegrationJoao Prado Maia26 Feb
RE: Eventum 1.4 SCM IntegrationJohn Mortlock21 Jan
  • RE: Eventum 1.4 SCM IntegrationJoao Prado Maia26 Feb