[Building Sakai] Spaces in site id throwing error with entity broker

Lovemore Nalube lovemore.nalube at uct.ac.za
Fri Jun 26 05:40:18 PDT 2009


Hi
 
Is there a way to avoid Entity Provider throwing the error below when accessing a RESTful path using a site id with spaces in it?
 
HTTP Status 400 - Could not parse entity path (/sms-task/love_s test site/memberships.json): input must consist of the following chars only (not counting []): [A-Za-z0-9\\(\\)\+\*\.\-_=,:;!~@%/ ( file://\)-_=,:;!~@%/ )]
 
Sakai escapes the special chars if set in a site id, but the spaces are left unchanged, hence EB 'blows up'. URL escaping such an id doesn't help.
 
Any ideas?
 
 
--
Lovemore Nalube
Online Learning Environments Developer (Vula)
PASS Transformation Committee REP
Centre for Educational Technology
CHED
University of Cape Town
www.cet.uct.ac.za 

/* Work Email: lovemore.nalube at uct.ac.za 
/* Cell: 076 186 1244
/* GTalk: lovenalube at gmail.com 



 
______________________________________________________________________________________________ 

UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 4500. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

_____________________________________________________________________________________________________
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090626/fee58bd0/attachment.html 


More information about the sakai-dev mailing list