[Cosmo-dev] [proposal] Cosmo Management Protocol 0.4

Brian Moseley bcm at osafoundation.org
Mon Oct 9 16:59:53 PDT 2006


On 10/9/06, Travis Vachon <travis at osafoundation.org> wrote:

> I would like to propose three specific changes to the protocol (a
> version that may be more readable can be found at
> http://wiki.osafoundation.org/bin/view/Journal/CMPZeroDotFourProposal):

+1, with the following caveats:

> In addition, to provide better performance for multi-user deletion, I
> would like to propose
>
> "POST /cmp/user/delete"
>
> with a message body like
>
> "user=user1&user=user2&...&user=userN"
>
> as a synonym for
>
> "DELETE /cmp/user/user1"
> "DELETE /cmp/user/user2"
> ...
>
> "DELETE /cmp/user/userN"

the content type of the request should be the same as that of a normal
html form submission over POST (i can't remember the specific type,
but you can find it in the html spec), and the usernames should be url
encoded.

> Specifically, I propose we return 3 new pieces of information for each user:
>    * Date Created (Date) (XML tag <created>)
>    * Date Modified (Date) (XML tag <modified>)
>    * Administrator (Boolean) (XML tag <administrator>)

i suggest that the administrator element be an empty element whose
presence determines whether or not the account has admin privileges
(as opposed to an element with a string value that clients have to
interpret as boolean).


More information about the cosmo-dev mailing list