[sip-comm-dev] Xcap questions


#1

Hi Grigorii,

I have some questions regarding xcap. I recently tested with a new
server which for newly created accounts returns "No content" for empty
lists. For example when you make a GET to the resource list, as its
empty the server returns:

HTTP/1.1 200 No content
Content-Length: 0

But we got an exception. The fix is not so hard, but my question is
have you seen something about this in rfc for the xcap?

And one more question, for example when we are adding a contact we are
sending the whole list to the server as xml with one PUT and as I saw
we need just a OK response from server, no need of any content in the
response(like the saved list or something), right?

Thanks
damencho

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Hello Damian,

According to the RFC 4825:

If the request URI contains only a document selector,
the server returns the document specified by the URI if it exists,
else returns a 404 response.

I think that the server behavior is incorrect.

You are right we send PUT request with the whole list and server MUST return
200 if it is ok or other HTTP code if it is not. If there are some error
server CAN return xcap-error xml (if it is supported) with the error
description.

Thanks Grigorii

···

2010/9/21 Damian Minkov <damencho@sip-communicator.org>

Hi Grigorii,

I have some questions regarding xcap. I recently tested with a new
server which for newly created accounts returns "No content" for empty
lists. For example when you make a GET to the resource list, as its
empty the server returns:

HTTP/1.1 200 No content
Content-Length: 0

But we got an exception. The fix is not so hard, but my question is
have you seen something about this in rfc for the xcap?

And one more question, for example when we are adding a contact we are
sending the whole list to the server as xml with one PUT and as I saw
we need just a OK response from server, no need of any content in the
response(like the saved list or something), right?

Thanks
damencho

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

I configured the sip communicator in eclipse.now i want to create an
installer .where should i make this ...?inside eclipse or outside..? ahat is
the procedure ..? can anyone explain..?please...

···

On Thu, Sep 23, 2010 at 12:09 PM, Grigorii Balutsel < grigorii.balutsel@gmail.com> wrote:

Hello Damian,

According to the RFC 4825:

If the request URI contains only a document selector,
the server returns the document specified by the URI if it exists,
else returns a 404 response.

I think that the server behavior is incorrect.

You are right we send PUT request with the whole list and server MUST
return 200 if it is ok or other HTTP code if it is not. If there are some
error server CAN return xcap-error xml (if it is supported) with the error
description.

Thanks Grigorii

2010/9/21 Damian Minkov <damencho@sip-communicator.org>

Hi Grigorii,

I have some questions regarding xcap. I recently tested with a new
server which for newly created accounts returns "No content" for empty
lists. For example when you make a GET to the resource list, as its
empty the server returns:

HTTP/1.1 200 No content
Content-Length: 0

But we got an exception. The fix is not so hard, but my question is
have you seen something about this in rfc for the xcap?

And one more question, for example when we are adding a contact we are
sending the whole list to the server as xml with one PUT and as I saw
we need just a OK response from server, no need of any content in the
response(like the saved list or something), right?

Thanks
damencho

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi,

I see but I think as we have everything we need to continue our normal
work we can do it that way.
As Postel's Law states: be conservative in what you send, liberal in
what you accept :slight_smile:
Do you prefer to prepare a patch or you are ok with me changing it.

Thanks
damencho

···

On Thu, Sep 23, 2010 at 9:39 AM, Grigorii Balutsel <grigorii.balutsel@gmail.com> wrote:

Hello Damian,

According to the RFC 4825:

If the request URI contains only a document selector,
the server returns the document specified by the URI if it exists,
else returns a 404 response.

I think that the server behavior is incorrect.

You are right we send PUT request with the whole list and server MUST return
200 if it is ok or other HTTP code if it is not. If there are some error
server CAN return xcap-error xml (if it is supported) with the error
description.

Thanks Grigorii

2010/9/21 Damian Minkov <damencho@sip-communicator.org>

Hi Grigorii,

I have some questions regarding xcap. I recently tested with a new
server which for newly created accounts returns "No content" for empty
lists. For example when you make a GET to the resource list, as its
empty the server returns:

HTTP/1.1 200 No content
Content-Length: 0

But we got an exception. The fix is not so hard, but my question is
have you seen something about this in rfc for the xcap?

And one more question, for example when we are adding a contact we are
sending the whole list to the server as xml with one PUT and as I saw
we need just a OK response from server, no need of any content in the
response(like the saved list or something), right?

Thanks
damencho

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

Hi Mathew,

The tutorial here: http://www.sip-communicator.org/index.php/Documentation/HowToBuildAnInstaller, says almost everything about it. The only difference is that we have added a launcher (so it's not felix.main.Main anymore) and you could have some extra parameters to add. For reference you could have a look to the "run" target in the build.xml.

Regards,
Yana

P.S. Could you please try to keep your messages in the related thread, please.

···

On Sep 23, 2010, at 9:15 AM, Tojo Mathew wrote:

I configured the sip communicator in eclipse.now i want to create an installer .where should i make this ...?inside eclipse or outside..? ahat is the procedure ..? can anyone explain..?please...

On Thu, Sep 23, 2010 at 12:09 PM, Grigorii Balutsel <grigorii.balutsel@gmail.com> wrote:
Hello Damian,

According to the RFC 4825:
If the request URI contains only a document selector,
the server returns the document specified by the URI if it exists,
else returns a 404 response.

I think that the server behavior is incorrect.

You are right we send PUT request with the whole list and server MUST return 200 if it is ok or other HTTP code if it is not. If there are some error server CAN return xcap-error xml (if it is supported) with the error description.

Thanks Grigorii

2010/9/21 Damian Minkov <damencho@sip-communicator.org>

Hi Grigorii,

I have some questions regarding xcap. I recently tested with a new
server which for newly created accounts returns "No content" for empty
lists. For example when you make a GET to the resource list, as its
empty the server returns:

HTTP/1.1 200 No content
Content-Length: 0

But we got an exception. The fix is not so hard, but my question is
have you seen something about this in rfc for the xcap?

And one more question, for example when we are adding a contact we are
sending the whole list to the server as xml with one PUT and as I saw
we need just a OK response from server, no need of any content in the
response(like the saved list or something), right?

Thanks
damencho

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Hi Damian,

I don't mind to be as tolerant as it possible.

We have discussed all points in the chat, feel free to it by yourself.

Thanks, Grigorii

···

2010/9/23 Yana Stamcheva <yana@sip-communicator.org>

Hi Mathew,

The tutorial here:
http://www.sip-communicator.org/index.php/Documentation/HowToBuildAnInstaller,
says almost everything about it. The only difference is that we have added a
launcher (so it's not felix.main.Main anymore) and you could have some extra
parameters to add. For reference you could have a look to the "run" target
in the build.xml.

Regards,
Yana

P.S. Could you please try to keep your messages in the related thread,
please.

On Sep 23, 2010, at 9:15 AM, Tojo Mathew wrote:

> I configured the sip communicator in eclipse.now i want to create an
installer .where should i make this ...?inside eclipse or outside..? ahat is
the procedure ..? can anyone explain..?please...
>
>
> On Thu, Sep 23, 2010 at 12:09 PM, Grigorii Balutsel < > grigorii.balutsel@gmail.com> wrote:
> Hello Damian,
>
> According to the RFC 4825:
> If the request URI contains only a document selector,
> the server returns the document specified by the URI if it exists,
> else returns a 404 response.
>
>
>
> I think that the server behavior is incorrect.
>
>
> You are right we send PUT request with the whole list and server MUST
return 200 if it is ok or other HTTP code if it is not. If there are some
error server CAN return xcap-error xml (if it is supported) with the error
description.
>
> Thanks Grigorii
>
> 2010/9/21 Damian Minkov <damencho@sip-communicator.org>
>
> Hi Grigorii,
>
> I have some questions regarding xcap. I recently tested with a new
> server which for newly created accounts returns "No content" for empty
> lists. For example when you make a GET to the resource list, as its
> empty the server returns:
>
> HTTP/1.1 200 No content
> Content-Length: 0
>
> But we got an exception. The fix is not so hard, but my question is
> have you seen something about this in rfc for the xcap?
>
> And one more question, for example when we are adding a contact we are
> sending the whole list to the server as xml with one PUT and as I saw
> we need just a OK response from server, no need of any content in the
> response(like the saved list or something), right?
>
> Thanks
> damencho
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Hi,

I've just committed it with r7741.

Thanks
damencho

···

On Thu, Sep 23, 2010 at 4:27 PM, Grigorii Balutsel <grigorii.balutsel@gmail.com> wrote:

Hi Damian,

I don't mind to be as tolerant as it possible.

We have discussed all points in the chat, feel free to it by yourself.

Thanks, Grigorii

2010/9/23 Yana Stamcheva <yana@sip-communicator.org>

Hi Mathew,

The tutorial here:
http://www.sip-communicator.org/index.php/Documentation/HowToBuildAnInstaller,
says almost everything about it. The only difference is that we have added a
launcher (so it's not felix.main.Main anymore) and you could have some extra
parameters to add. For reference you could have a look to the "run" target
in the build.xml.

Regards,
Yana

P.S. Could you please try to keep your messages in the related thread,
please.

On Sep 23, 2010, at 9:15 AM, Tojo Mathew wrote:

> I configured the sip communicator in eclipse.now i want to create an
> installer .where should i make this ...?inside eclipse or outside..? ahat is
> the procedure ..? can anyone explain..?please...
>
>
> On Thu, Sep 23, 2010 at 12:09 PM, Grigorii Balutsel >> > <grigorii.balutsel@gmail.com> wrote:
> Hello Damian,
>
> According to the RFC 4825:
> If the request URI contains only a document selector,
> the server returns the document specified by the URI if it exists,
> else returns a 404 response.
>
>
>
> I think that the server behavior is incorrect.
>
>
> You are right we send PUT request with the whole list and server MUST
> return 200 if it is ok or other HTTP code if it is not. If there are some
> error server CAN return xcap-error xml (if it is supported) with the error
> description.
>
> Thanks Grigorii
>
> 2010/9/21 Damian Minkov <damencho@sip-communicator.org>
>
> Hi Grigorii,
>
> I have some questions regarding xcap. I recently tested with a new
> server which for newly created accounts returns "No content" for empty
> lists. For example when you make a GET to the resource list, as its
> empty the server returns:
>
> HTTP/1.1 200 No content
> Content-Length: 0
>
> But we got an exception. The fix is not so hard, but my question is
> have you seen something about this in rfc for the xcap?
>
> And one more question, for example when we are adding a contact we are
> sending the whole list to the server as xml with one PUT and as I saw
> we need just a OK response from server, no need of any content in the
> response(like the saved list or something), right?
>
> Thanks
> damencho
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
> For additional commands, e-mail: dev-help@sip-communicator.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net