Message Policies in XDI2

7 views
Skip to first unread message

Markus Sabadello

unread,
Mar 1, 2013, 5:41:57 PM3/1/13
to xd...@googlegroups.com, OASIS - XDI TC
I implemented support for message policies in XDI messages.
This means that an XDI client can specify that a message should only be executed if certain conditions are made.

This is the "client-side counterpart" to XDI link contracts.
I.e. instead of the XDI endpoint enforcing a certain policy, the XDI client itself can send a policy along with the message.

See here for Drummond's description of this feature:

In the XDI Local Messenger there's an example where you can try this:

It's a $mod operation that only gets executed if a literal value in the target graph is $greater than 80.

Markus

Drummond Reed

unread,
Mar 1, 2013, 7:12:42 PM3/1/13
to xd...@googlegroups.com, OASIS - XDI TC
Markus, very cool. Quite clean and elegantly done.

=Drummond 



Markus

--
You received this message because you are subscribed to the Google Groups "XDI2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xdi2+uns...@googlegroups.com.
To post to this group, send email to xd...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Markus Sabadello

unread,
Mar 2, 2013, 1:44:03 AM3/2/13
to xd...@googlegroups.com, OASIS - XDI TC
One question I had was whether the server should return an error if the message policy is not met, or simply not execute the message and be silent.

This also takes us to the question of error codes, and I found this page that Mike had created:

Is this consistent with your thinking, i.e. we would develop a dictionary of such error codes?

Markus

Davis, Peter

unread,
Mar 2, 2013, 11:17:51 AM3/2/13
to xd...@googlegroups.com, OASIS - XDI TC
I think you need to respond with an error, either to allow software to recover gracefully, or a the very least, prove a user an explanation that might help them fix the problem.

=peterd
Peter Davis: Neustar, Inc.
Distinguished Engineer
45980 Center Oak Plaza Sterling, VA 20166

The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain confidential and/or privileged information. If you are not the intended recipient you have received this e-mail message in error and any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately and delete the original message.


Markus Sabadello

unread,
Mar 2, 2013, 1:10:39 PM3/2/13
to xd...@googlegroups.com, OASIS - XDI TC
The question is, is it really a "problem" that needs to be reported as an "error" so that it can be "fixed", if the client itself is asking to conditionally execute the operation. The condition met or not met might both be perfectly within the intentions of the client.

Markus
Reply all
Reply to author
Forward
0 new messages