OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ws-calendar message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: FW: [tc-xml-l] Fwd: Re: FW: [ws-calendar] CalWSRest interface and error codes


Because Mike is not on the committee roster yet

 

From: tc-xml-l-bounces@lists.calconnect.org [mailto:tc-xml-l-bounces@lists.calconnect.org] On Behalf Of Mike Douglass
Sent: Friday, August 27, 2010 11:50 AM
To: tc-xml-l@lists.calconnect.org
Subject: [tc-xml-l] Fwd: Re: FW: [ws-calendar] CalWSRest interface and error codes

 

I replied to Toby only by mistake

-------- Original Message --------

Subject:

Re: [tc-xml-l] FW: [ws-calendar] CalWSRest interface and error codes

Date:

Fri, 27 Aug 2010 10:57:15 -0400

From:

Mike Douglass <douglm@rpi.edu>

To:

Toby.Considine@gmail.com



Wrong way round

The description element is optional and simply descriptive - mostly for debugging

The other element is a defined tag indicating the condition violated - as such there are a known (but growing) list of these.

Some may contain other elements - providing further information.

In the example the condition violated is that it must be a supported filter. The offending property is listed.

So the unique id is <c:supported-filter>

On 08/27/2010 10:39 AM, Toby Considine wrote:

Comment from committee

 

tc

 


"If something is not worth doing, it`s not worth doing well" - Peter Drucker


Toby Considine
TC9, Inc

TC Chair: oBIX & WS-Calendar

TC Editor: EMIX, EnergyInterop

U.S. National Inst. of Standards and Tech. Smart Grid Architecture Committee


  

Email: Toby.Considine@gmail.com
Phone: (919)619-2104

http://www.tcnine.com/
blog: www.NewDaedalus.com

 

 

From: Benoît Lepeuple [mailto:b.lepeuple@arcinfo.com]
Sent: Friday, August 27, 2010 9:55 AM
To: ws-calendar@lists.oasis-open.org
Subject: [ws-calendar] CalWSRest interface and error codes

 

Hi,

 

Following last week discussion on the draft RESTFul interface from CalWS, I have only one remark (or concern):

 

In the XML element to describe and return error conditions, it is important for globalization/localization reasons to ensure that errors are not only identified by a text description, but also by a unique Id (an error code).

Of course, it does not prevent from having a text description and a one to one relationship between each “error code” and its default text description value (in English by default in the spec).

The error code used for a given error condition should always be the good one, but the text description could be localized differently depending on the context.

 

For example, in:

<D:error>

<C:supported-filter>

<C:prop-filter name="X-ABC-GUID"/>

</C:supported-filter>

<D:description>Unknown property </C:description>

</D:error>

 

If I understand it well, the D:Description element IS the unique Id of the error, and the C:supported-filter contains more information about the error.

But, there may be different errors having (or using) the same C:supported-filter: Unknown property, invalid property …

There shall be an unambiguous way to identify the various errors, without having only the text description to rely on.

 

We have already done or seen this in various contexts, if interested, I could share more information / tips.

 

Thanks for sharing your remarks on that.

 

Regards

 

Benoît LEPEUPLE

Product Manager

ARC Informatique

 

2 avenue de la cristallerie - 92310  SEVRES  - FRANCE

Tel: +33 1 41 14 36 00 - Mobile: +33 6 87 80 20 43 

Email : b.lepeuple@arcinfo.com

 

www.pcvuesolutions.com

 

 
_______________________________________________
tc-xml-l mailing list
tc-xml-l@lists.calconnect.org
http://lists.calconnect.org/mailman/listinfo/tc-xml-l



-- 
 
Mike Douglass                           douglm@rpi.edu
Senior Systems Programmer
Communication & Collaboration Technologies      518 276 6780(voice) 2809
(fax)
Rensselaer Polytechnic Institute 110 8th Street, Troy, NY 12180
_______________________________________________
tc-xml-l mailing list
tc-xml-l@lists.calconnect.org
http://lists.calconnect.org/mailman/listinfo/tc-xml-l


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]