[Davical-general] Event Update Issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Davical-general] Event Update Issue

Piyush Joshi

Hi,

      We are using davical as calendar and contacts server and ical4j-connector to add, edit and delete events and tasks, all working fine except when ical4j-connector try to update any events we get the following error in server :-

 

<if-match/>Existing resource ETag of <<"3f8af0f459061ac1a015501466f5cb1d">> does not match <<"*">>

 

Does davical not accept * in if-match and if there is any fix to solve this please let us know.

 

 

--

We look forward to a long and fruitful association with you.

Thanks and Regards

Piyush Joshi
Solution Architect

 


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Event Update Issue

Andrew McMillan-2
On Tue, 2016-06-21 at 19:20 +0530, Piyush Joshi wrote:

> Hi,
>       We are using davical as calendar and contacts server and
> ical4j-connector to add, edit and delete events and tasks, all
> working fine except when ical4j-connector try to update any events we
> get the following error in server :-
>  
> <if-match/>Existing resource ETag of
> <<"3f8af0f459061ac1a015501466f5cb1d">> does not match <<"*">>
>  
> Does davical not accept * in if-match and if there is any fix to
> solve this please let us know.

Hi Piyush,

Can you please send the full request & response headers for this?

The code in question is here:

https://gitlab.com/davical-project/davical/blob/master/inc/CalDAVReques
t.php

Look for "function CheckEtagMatch".

The code looks kind of pedantic about following the specification for
this, so if you are able to send a tcpdump of the actual communication
it would be helpful to identify exactly what circumstances tickle the
problem.

Consider creating a gitlab issue to track it.  I do note that not every
method calls $request->CheckEtagMatch() but PUT is one of the ones that
does.

Thanks,
Andrew.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Event Update Issue

Piyush Joshi
Hi,
      Thanks for the quick reply Andrew, I am attaching Wireshark dump so that you can better analyse the request/response.

Please check and let us know what going wrong from your valuable time.


-----Original Message-----
From: Andrew McMillan [mailto:[hidden email]]
Sent: 21 June 2016 20:16
To: Piyush Joshi <[hidden email]>; [hidden email]
Subject: Re: [Davical-general] Event Update Issue

On Tue, 2016-06-21 at 19:20 +0530, Piyush Joshi wrote:

> Hi,
>       We are using davical as calendar and contacts server and
> ical4j-connector to add, edit and delete events and tasks, all working
> fine except when ical4j-connector try to update any events we get the
> following error in server :-
>  
> <if-match/>Existing resource ETag of
> <<"3f8af0f459061ac1a015501466f5cb1d">> does not match <<"*">>
>  
> Does davical not accept * in if-match and if there is any fix to solve
> this please let us know.
Hi Piyush,

Can you please send the full request & response headers for this?

The code in question is here:

https://gitlab.com/davical-project/davical/blob/master/inc/CalDAVReques
t.php

Look for "function CheckEtagMatch".

The code looks kind of pedantic about following the specification for this, so if you are able to send a tcpdump of the actual communication it would be helpful to identify exactly what circumstances tickle the problem.

Consider creating a gitlab issue to track it.  I do note that not every method calls $request->CheckEtagMatch() but PUT is one of the ones that does.

Thanks,
Andrew.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general

davical.pcapng (83K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Event Update Issue

Andrew McMillan-2
On Wed, 2016-06-22 at 11:35 +0530, Piyush Joshi wrote:
> Hi,
>       Thanks for the quick reply Andrew, I am attaching Wireshark
> dump so that you can better analyse the request/response.

Hi Piyush,

Unfortunately the wireshark dump as received did not include the error
you mentioned.  Also, you should consider the account used to be
compromised, since the dump included the account password.

If you are using Wireshark, you can use the "Follow TCP Stream" option
to dump the communications into a plain ASCII file, obscure or remove
the "Authorization" lines and send that - hopefully we can narrow it
down to the exact request / response.

Thanks,
Andrew.

>
> Please check and let us know what going wrong from your valuable
> time.
>
>
> -----Original Message-----
> From: Andrew McMillan [mailto:[hidden email]
> Sent: 21 June 2016 20:16
> To: Piyush Joshi <[hidden email]>; [hidden email]
> orge.net
> Subject: Re: [Davical-general] Event Update Issue
>
> On Tue, 2016-06-21 at 19:20 +0530, Piyush Joshi wrote:
> > Hi,
> >       We are using davical as calendar and contacts server and 
> > ical4j-connector to add, edit and delete events and tasks, all
> > working 
> > fine except when ical4j-connector try to update any events we get
> > the 
> > following error in server :-
> >  
> > <if-match/>Existing resource ETag of
> > <<"3f8af0f459061ac1a015501466f5cb1d">> does not match <<"*">>
> >  
> > Does davical not accept * in if-match and if there is any fix to
> > solve 
> > this please let us know.
>
> Hi Piyush,
>
> Can you please send the full request & response headers for this?
>
> The code in question is here:
>
> https://gitlab.com/davical-project/davical/blob/master/inc/CalDAVRequ
> es
> t.php
>
> Look for "function CheckEtagMatch".
>
> The code looks kind of pedantic about following the specification for
> this, so if you are able to send a tcpdump of the actual
> communication it would be helpful to identify exactly what
> circumstances tickle the problem.
>
> Consider creating a gitlab issue to track it.  I do note that not
> every method calls $request->CheckEtagMatch() but PUT is one of the
> ones that does.
>
> Thanks,
> Andrew.
--
----------------------------------------------------------------------
https://google.com/+AndrewMcMillan                     Dublin, Ireland
                                                    +353 (87) 372 7098

The goal of good engineering is not to ask "what if?", but to ask
"how do I make this work as well as possible".  -- Linus Torvalds

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


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general
Reply | Threaded
Open this post in threaded view
|

Re: Event Update Issue

Piyush Joshi
Hi,
      Please find the attached log file as per mail, hope this will help you to understand easily.



-----Original Message-----
From: Andrew McMillan [mailto:[hidden email]]
Sent: 23 June 2016 03:25
To: Piyush Joshi <[hidden email]>; [hidden email]
Subject: Re: [Davical-general] Event Update Issue

On Wed, 2016-06-22 at 11:35 +0530, Piyush Joshi wrote:
> Hi,
>       Thanks for the quick reply Andrew, I am attaching Wireshark dump
> so that you can better analyse the request/response.

Hi Piyush,

Unfortunately the wireshark dump as received did not include the error you mentioned.  Also, you should consider the account used to be compromised, since the dump included the account password.

If you are using Wireshark, you can use the "Follow TCP Stream" option to dump the communications into a plain ASCII file, obscure or remove the "Authorization" lines and send that - hopefully we can narrow it down to the exact request / response.

Thanks,
Andrew.

>
> Please check and let us know what going wrong from your valuable time.
>
>
> -----Original Message-----
> From: Andrew McMillan [mailto:[hidden email]]
> Sent: 21 June 2016 20:16
> To: Piyush Joshi <[hidden email]>; [hidden email]
> orge.net
> Subject: Re: [Davical-general] Event Update Issue
>
> On Tue, 2016-06-21 at 19:20 +0530, Piyush Joshi wrote:
> > Hi,
> >       We are using davical as calendar and contacts server and
> > ical4j-connector to add, edit and delete events and tasks, all
> > working fine except when ical4j-connector try to update any events
> > we get the following error in server :-
> >  
> > <if-match/>Existing resource ETag of
> > <<"3f8af0f459061ac1a015501466f5cb1d">> does not match <<"*">>
> >  
> > Does davical not accept * in if-match and if there is any fix to
> > solve this please let us know.
>
> Hi Piyush,
>
> Can you please send the full request & response headers for this?
>
> The code in question is here:
>
> https://gitlab.com/davical-project/davical/blob/master/inc/CalDAVRequ
> es
> t.php
>
> Look for "function CheckEtagMatch".
>
> The code looks kind of pedantic about following the specification for
> this, so if you are able to send a tcpdump of the actual communication
> it would be helpful to identify exactly what circumstances tickle the
> problem.
>
> Consider creating a gitlab issue to track it.  I do note that not
> every method calls $request->CheckEtagMatch() but PUT is one of the
> ones that does.
>
> Thanks,
> Andrew.
--
----------------------------------------------------------------------
https://google.com/+AndrewMcMillan                     Dublin, Ireland
                                                    +353 (87) 372 7098

The goal of good engineering is not to ask "what if?", but to ask "how do I make this work as well as possible".  -- Linus Torvalds

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


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Davical-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/davical-general