[Building Sakai] EntityBroker. Spaces in custom action entity ids

Adrian Fish a.fish at lancaster.ac.uk
Mon Aug 2 09:50:20 PDT 2010


Wrong version. I meant 1.3.13. I have Profile2 on the mind ...

Adrian Fish wrote:
> Hi Aaron,
>
> I'm using 1.3.9 plus the !site.helper patch to the userPerms action in 
> the site provider.
>
> Hitting a url like this: 
> http://btc224000006.lancs.ac.uk/direct/site/a%20b%20c/pages.json ...
>
> ... yields this in the logs:
>
> INFO Could not process entity: /site (400)[null]: Cannot execute 
> custom action (pages) for request method GET, The custom action view 
> key (show) must match the request view key (list)
>
> Adrian.
>
> Aaron Zeckoski wrote:
>> An ID with a space in it? I am guessing the system is seeing it as a
>> divider of some kind. IDs are pretty limited and the parser will
>> expect them to only contain the following chars
>> (A-Za-z0-9()+*.-_=,:;!~@%). You might try encoding the space as %20.
>>
>> Can you paste in the message from the logs? It should have more
>> information (I hope). Also, what version of EB?
>> -AZ
>>
>>
>> On Mon, Aug 2, 2010 at 12:30 PM, Adrian Fish <a.fish at lancaster.ac.uk> 
>> wrote:
>>  
>>> Hi All,
>>>
>>> Has anybody encountered this with entity broker before? If you pass 
>>> a site
>>> id with spaces to any of the site entity custom actions you get this
>>> returned:
>>>
>>> Could not process entity: /site (400)[null]: Cannot execute custom 
>>> action
>>> (pages) for request method GET, The custom action view key (show) 
>>> must match
>>> the request view key (list)
>>>
>>> How can I fix this? It's urgent, so if somebody can point me to the 
>>> right
>>> place in the code and I'll sort it.
>>>
>>> Cheers,
>>>
>>> Adrian.
>>>
>>> -- 
>>> ==================================
>>> Adrian Fish
>>> Software Engineer
>>> Centre for e-Science
>>> Bowland Tower South C Floor
>>> Lancaster University
>>> Lancaster
>>> LA1 4YW
>>> email: a.fish at lancaster.ac.uk
>>>
>>> http://confluence.sakaiproject.org/display/YAFT/Yaft
>>> http://confluence.sakaiproject.org/display/CLOG/Home
>>> http://confluence.sakaiproject.org/display/BBB/Home
>>>
>>>
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>> TO UNSUBSCRIBE: send email to 
>>> sakai-dev-unsubscribe at collab.sakaiproject.org
>>> with a subject of "unsubscribe"
>>>
>>>     
>>
>>
>>
>>   
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-- 
==================================
Adrian Fish
Software Engineer
Centre for e-Science
Bowland Tower South C Floor
Lancaster University
Lancaster
LA1 4YW
email: a.fish at lancaster.ac.uk

http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/CLOG/Home
http://confluence.sakaiproject.org/display/BBB/Home

-------------- next part --------------
A non-text attachment was scrubbed...
Name: a_fish.vcf
Type: text/x-vcard
Size: 299 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100802/ec742a11/attachment.vcf 


More information about the sakai-dev mailing list