[Building Sakai] Entity Broker - REST getEntities - URL longer than max limit allowed

Tania Tritean TTritean at loi.nl
Fri Mar 22 01:17:57 PDT 2013


Hello,

I have a question related to the entity broker.

We are trying to get a list of data via EB Restfull capability.
Normally we would use the method getEntities for this, but the method should receive a very long list of arguments so that the URL can be longer than the max limit allowed in different browsers.

What would be the approach to solve this problem?

We tried this:

  1.  To use EntityCustomAction instead of getEntities. This action is mapped with viewKey = entityView.View_NEW to make the action as a post, so that the parameters won't be in the URL.
-         the problem is that for a list with one element we get to the code in EntityHandlerImpl line 447 ( Sakai 2.9, EB 1.4.3)
if (actionReturn.entitiesList.size() > 1) {
       // correct the view key which should be used now
       view.setViewKey(EntityView.VIEW_LIST);
  }

So we end up with the error and no data returned:
Provider: Attempted to access an entity URL path (/loi-activities-history/new.json) using method (POST) for an entity (/loi-activities-history) and view (new) when there is no access provider to handle the request for prefix (loi-activities-history)


Is there another way to solve our problem?

Regards,
Tania

Tania Tritean
Tel.: 035 629 39 23

Leidse Onderwijsinstellingen bv
Leidsedreef 2
2352 BA Leiderdorp
www.loi.nl

________________________________

[Nederland wordt steeds slimmer. Leidse Onderwijsinstellingen]

De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming hebben dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is verboden. De informatie in dit e-mailbericht (en de bijlagen) kan vertrouwelijk van aard zijn en kan binnen het bereik vallen van een wettelijke geheimhoudingsplicht. Indien u deze e-mail ten onrechte ontvangen hebt, wordt u verzocht ons daarvan zo spoedig mogelijk per e-mail of telefonisch op de hoogte te stellen, en het ontvangen bericht (en de bijlagen) te wissen zonder deze te lezen, te kopi?ren of aan derden bekend te stellen.

P  Denk aan het milieu voordat u dit bericht print

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130322/9e93bbf2/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nwss_loi7c6f.gif
Type: image/gif
Size: 4378 bytes
Desc: nwss_loi7c6f.gif
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130322/9e93bbf2/attachment.gif 


More information about the sakai-dev mailing list