Summary | Implement API for non-RPC friendly API calls. |
Queue | Horde Base |
Queue Version | Git master |
Type | Enhancement |
State | Accepted |
Priority | 1. Low |
Owners | |
Requester | slusarz (at) horde (dot) org |
Created | 10/07/2013 (4237 days ago) |
Due | |
Updated | 11/23/2013 (4190 days ago) |
Assigned | |
Resolved | |
Milestone | 6 |
Patch | No |
Queue ⇒ Horde Base
Summary ⇒ Implement API for non-RPC friendly API calls.
Milestone ⇒ 6
Version ⇒ Git develop
State ⇒ Accepted
the underlying issue.
as well. Requiring logic in the returned object to access the
requested data will not work over e.g., json-rpc calls.
a Horde_Imap_Client_Base object. That is most certainly NOT
something that can be returned via a JSON-RPC call. (or
mail/flagList. Or mail/createMailbox).
objects, doesn't mean that this is correct behavior.
The point is that all API methods are exposed through the external API
too. This indeed renders all methods that return or expect objects in
an RPC context useless. For methods like imapOb this might be
acceptable because using it only makes sense in a PHP context anyway.
That's a completely different story for methods like contacts/search
though, which make a lot of sense in an RPC environment.
inter-application API calls are restricted to simple data structures
. That is a **crippling** limitation for a feature that came AFTER
the original API design - which allowed PHP objects to be returned.
There might have been an exceptions somewhere, or two, but the methods
that you used an argument for your point of view have been added by
yourself, long after APIs have been added or used in Horde.
the future. Or at least a separate search call that is RPC specific.
But you absolutely cannot be expected to know the structure of the
photo data object, so at a minimum this ticket cannot be closed.
This needs to be documented somewhere.
internally, to convert these kind of attributes to something usable.
State ⇒ Feedback
as well. Requiring logic in the returned object to access the
requested data will not work over e.g., json-rpc calls.
Horde_Imap_Client_Base object. That is most certainly NOT something
that can be returned via a JSON-RPC call. (or mail/flagList. Or
mail/createMailbox).
And that is extremely concerning if you are saying that
inter-application API calls are restricted to simple data structures .
That is a **crippling** limitation for a feature that came AFTER the
original API design - which allowed PHP objects to be returned.
If you disgaree, than there needs to be a separate RPC framework in
the future. Or at least a separate search call that is RPC specific.
But you absolutely cannot be expected to know the structure of the
photo data object, so at a minimum this ticket cannot be closed. This
needs to be documented somewhere.
State ⇒ Rejected
State ⇒ Feedback
well. Requiring logic in the returned object to access the requested
data will not work over e.g., json-rpc calls.
Priority ⇒ 1. Low
State ⇒ New
Patch ⇒ No
Milestone ⇒ 5
Queue ⇒ Turba
Summary ⇒ Better return from search API call
Type ⇒ Enhancement
like data conversion from backend transparently from the calling code
(i.e. photo information is returned in a specific array-hierarchy that
is documented nowhere).