Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DAViCal: General

Help in setting up action_log

 

 

DAViCal general RSS feed   Index | Next | Previous | View Threaded


Axel.Rau at Chaos1

Apr 19, 2012, 3:19 AM

Post #1 of 5 (259 views)
Permalink
Help in setting up action_log

Am 16.04.2012 um 15:24 schrieb Axel Rau:

> I did not succeed, logging write operations. I have
> $c->action_log_name = "/some_path_to_world_writable_file";
> in my config/config.php. (Any hints welcome).
What is wrong with my setting?

Axel
---
PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


chris at netcar24

Apr 19, 2012, 5:20 AM

Post #2 of 5 (255 views)
Permalink
Re: Help in setting up action_log [In reply to]

hi,

had same problem...
fixed it by modifying /usr/share/davical/htdocs/caldav.php

here's the diff:

<snip>
$ diff -uB htdocs/caldav.php.orig htdocs/caldav.php
--- htdocs/caldav.php.orig 2012-04-19 14:17:45.000000000 +0200
+++ htdocs/caldav.php 2012-02-15 11:48:07.000000000 +0100
@@ -106,6 +106,17 @@
}
}

+/**
+ * by cjs for including that fucking log_stuff
+ * which i'm looking for since ... wtf? i don't know!!!!
+ * ahhhhhhhhhhhhhhhhhhhhhhhhhhhhh!!!!!!
+ **/
+if( file_exists('../inc/log_caldav_action.php') ) {
+ include_once('../inc/log_caldav_action.php');
+} else {
+ dbg_error_log( 'LOG WARNING', ' inc/log_caldav_action.php not found
by htdocs/caldav.php');
+}
+
switch ( $request->method ) {
case 'OPTIONS': include_once('caldav-OPTIONS.php'); break;
case 'REPORT': include_once('caldav-REPORT.php'); break;
<snap>

cheers,
chris


--On Donnerstag, April 19, 2012 12:19:31 +0200 Axel Rau
<Axel.Rau [at] Chaos1> wrote:

>
> Am 16.04.2012 um 15:24 schrieb Axel Rau:
>
>> I did not succeed, logging write operations. I have
>> $c->action_log_name = "/some_path_to_world_writable_file";
>> in my config/config.php. (Any hints welcome).
> What is wrong with my setting?
>
> Axel
> ---
> PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
>
>
> -------------------------------------------------------------------------
> ----- For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Davical-general mailing list
> Davical-general [at] lists
> https://lists.sourceforge.net/lists/listinfo/davical-general



--

netcar24 GmbH

Systems Engineer

Technologiezentrum Koblenz
Universitätsstrasse 3
56070 Koblenz

Geschäftsführer / CEO: Michael Deuse
Geschäftsführer / CTO: Karsten Stoppe
Amtsgericht Koblenz HRB 20055

HOTLINE: +49-1805-808444 *)
FAX: +49-261-8854350

cs [at] netcar24
www.netcar24.com
www.re-fleet.com

Autohausverwaltung für Profis
Softwaresolutions for automotive retail

*) 14Cent/min aus dem deutschen Festnetz
max. 42Cent/min aus dem Mobilfunknetz

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

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort
netcar24 und vernichten Sie diese Mail. Das unerlaubte Kopieren
sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

Disclaimer: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or entity
to whom they are addressed. If you are not the intended recipient,
please notify netcar24 immediately and delete this email from your
system. Please note that any views or opinions presented in this email
are solely those of the author and do not necessarily represent those of
the company. Finally, the recipient should check this email and any
attachments for the presence of viruses.
Although this message was scanned for viruses before being sent, the
company accepts no liability for any loss, damage or expense resulting
directly or indirectly from the access of this e-mail or any attached
files.

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


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


Axel.Rau at chaos1

Apr 19, 2012, 12:36 PM

Post #3 of 5 (254 views)
Permalink
Re: Help in setting up action_log [In reply to]

Am 19.04.2012 um 14:20 schrieb Christoph Steidl:

> had same problem...
> fixed it by modifying /usr/share/davical/htdocs/caldav.php
>
> here's the diff:
Thanks. Works now, but gives only minimum info. Requires to look up uid in calendar_item.
No logging of CARDDAV operations at all.
addressbook* tables have no 'last_modified' column, which would help a lot with testing (Andrew are you listening?)

Axel
---
PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


andrew at morphoss

Apr 19, 2012, 1:20 PM

Post #4 of 5 (254 views)
Permalink
Re: Help in setting up action_log [In reply to]

On Thu, 2012-04-19 at 14:20 +0200, Christoph Steidl wrote:
> hi,
>
> had same problem...
> fixed it by modifying /usr/share/davical/htdocs/caldav.php

You're supposed to modify your config file, which is also PHP code and
the include_once will work just fine there. Modifying caldav.php won't
make upgrades easy...

Cheers,
Andrew.
>
> here's the diff:
>
> <snip>
> $ diff -uB htdocs/caldav.php.orig htdocs/caldav.php
> --- htdocs/caldav.php.orig 2012-04-19 14:17:45.000000000 +0200
> +++ htdocs/caldav.php 2012-02-15 11:48:07.000000000 +0100
> @@ -106,6 +106,17 @@
> }
> }
>
> +/**
> + * by cjs for including that fucking log_stuff
> + * which i'm looking for since ... wtf? i don't know!!!!
> + * ahhhhhhhhhhhhhhhhhhhhhhhhhhhhh!!!!!!
> + **/
> +if( file_exists('../inc/log_caldav_action.php') ) {
> + include_once('../inc/log_caldav_action.php');
> +} else {
> + dbg_error_log( 'LOG WARNING', ' inc/log_caldav_action.php not found
> by htdocs/caldav.php');
> +}
> +
> switch ( $request->method ) {
> case 'OPTIONS': include_once('caldav-OPTIONS.php'); break;
> case 'REPORT': include_once('caldav-REPORT.php'); break;
> <snap>
>
> cheers,
> chris
>
>
> --On Donnerstag, April 19, 2012 12:19:31 +0200 Axel Rau
> <Axel.Rau [at] Chaos1> wrote:
>
> >
> > Am 16.04.2012 um 15:24 schrieb Axel Rau:
> >
> >> I did not succeed, logging write operations. I have
> >> $c->action_log_name = "/some_path_to_world_writable_file";
> >> in my config/config.php. (Any hints welcome).
> > What is wrong with my setting?
> >
> > Axel
> > ---
> > PGP-Key:29E99DD6 ☀ +49 151 2300 9283 ☀ computing @ chaos claudius
> >
> >
> > -------------------------------------------------------------------------
> > ----- For Developers, A Lot Can Happen In A Second.
> > Boundary is the first to Know...and Tell You.
> > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> > http://p.sf.net/sfu/Boundary-d2dvs2
> > _______________________________________________
> > Davical-general mailing list
> > Davical-general [at] lists
> > https://lists.sourceforge.net/lists/listinfo/davical-general
>
>
>

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
You had mail. Paul read it, so ask him what it said.
------------------------------------------------------------------------
Attachments: signature.asc (0.82 KB)


andrew at morphoss

Apr 19, 2012, 1:24 PM

Post #5 of 5 (250 views)
Permalink
Re: Help in setting up action_log [In reply to]

On Thu, 2012-04-19 at 21:36 +0200, Axel Rau wrote:
> Am 19.04.2012 um 14:20 schrieb Christoph Steidl:
>
> > had same problem...
> > fixed it by modifying /usr/share/davical/htdocs/caldav.php
> >
> > here's the diff:
> Thanks. Works now, but gives only minimum info. Requires to look up uid in calendar_item.
> No logging of CARDDAV operations at all.
> addressbook* tables have no 'last_modified' column, which would help a lot with testing (Andrew are you listening?)

(1) move that include_once() into your config file. Putting it in
caldav.php is a bad idea.

(2) Hmmm, OK. The log is intentionally brief, but the fact that only
CalDAV things are logged is not. I'll add the necessary code into the
CardDAV code also.

(3) uid is only probably unique within a calendar, the actual unique ID
is the path which DAViCal uses as the dav_name.

Cheers,
Andrew.

--
------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
The ends justify the means.
-- after Matthew Prior
------------------------------------------------------------------------
Attachments: signature.asc (0.82 KB)

DAViCal general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.