| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Those files add support for transport driver to interact with core.
|
| |
|
|
|
|
|
|
| |
With vCard version 2.1 the type prefix to parameter values is
optional, so the client implementation may not be able to parse
it.
|
|
|
|
|
| |
According to the spec we must respond any PUT request with the
Bad Request response code.
|
|
|
|
|
| |
With this we assume that the owner contact information is stored
under the uri of the owner default contact (nco:default-contact-me).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In situation such as pcsuite service driver which has .who we need to
fallback to an empty one otherwise it will not be possible to reuse
drivers such as capability which doesn't need a specific version in
this case.
The order is now:
who specific: who not NULL, target not NULL and mimetype not NULL
non-who/mimetype specific: target not NULL and mimetype not NULL
target default: target not NULL
general default: target is NULL aka Highlander - there can be only one
|
|
|
|
|
|
|
|
|
| |
In C, the result of an operation has always the size of the largest
operand, in this case both operands are unsigned longs, which was
causing the operation to overflow on 32bit machines.
The solution is to force an operand to be of a size that would not
overflow and to store the result somewhere with a safe size.
|
|
|
|
|
| |
If the client doesn't send a NAME header, the folder argument may
be NULL.
|
|
|
|
|
|
|
| |
If the handle value is bigger than the maximum possible addressable
value(32bits), it is better to ignore this unusual situation than try
to map it to a valid handle value and add extra logic to translate
this new value when a PullvCardEntry request is received.
|
|
|
|
|
|
|
| |
Fix crash on PBAP SetPhoneBook for tracker back-end. When the
target folder is NULL and flags indicates "Go up 1 level", g_free
is called for a wrong address. g_strrstr function doesn't return
a newly-allocated string.
|
|
|
|
| |
Make use of g_strcmp0 which is a NULL-safe string comparison function
|
|
|
|
|
| |
In case of opp the agent may have changed the object name which in case
of the name being NULL will cause a bad request response.
|
| |
|
|
|
|
|
| |
In situation such as pc-suite driver the client may connect omitting WHO
header which is perfect fine and should be allowed.
|
|
|
|
|
|
|
|
|
|
| |
The FTP service was only using the current folder name to build the
target filename for GET requests.
And we must reject requests without name and type headers:
"Either the Type header or the Name header must be included in the
GET request when it is sent to the server." -- GOEP
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
When the received object fits in only one packet, when we reach
obex_read_stream we may not have the driver. We must wait the driver
to be set before writing.
|
|
|
|
|
| |
This includes retrieving information from Tracker about the
contact's address.
|
|
|
|
|
| |
It was using the nco:EmailAddress uri instead of the proper
email address.
|
|
|
|
|
| |
On the mch, ich and och folders the handles must be ordered by the
received date or the sent date of each call.
|
| |
|
| |
|
|
|
|
|
|
| |
Tracker was taking a long time to process the queries. Use functions,
instead of OPTIONAL arguments, to make Tracker's life easier and
speed this processing time.
|
|
|
|
|
|
|
| |
When we only discover that the requested resource can't be found
in the async callback, we set the error using the
obex_object_set_io_flags method, the Not Found case was not being
handled
|
| |
|
|
|
|
|
| |
When trying to use a search attribute that the contacts don't have we
should fallback to using the default sorting algorithm (Indexed).
|
|
|
|
|
|
|
| |
PullvCardListing shall return OBEX error service unavailable when
ebook can process a valid contact query. Given the available error
codes for PBAP, service unvailable is the code more suitable for
this scenario.
|
|
|
|
|
|
| |
All contacts of evolution back-end will be mapped into /telecom/pb
folder. PullvCardListing of other folders shall return OBEX Not
Found error.
|
|
|
|
|
| |
When the folder doesn't exist OBEX Not Found error shall be returned
instead of Bad Request.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
For success cases the variable used to store the return value is
not initialized.
|
|
|
|
|
|
| |
When the backend implementation is not able to find the vCard we must
return the -ENOENT error, which is translated to the Not Found OBEX
response.
|
| |
|
|
|
|
| |
The spec mandates that the owner vCard must have handle 0.vcf.
|
|
|
|
|
|
|
|
|
|
|
| |
OBEX specification 1.3 says:
"Though the Name header is very useful for operations like file transfer,
it is optional"
To fix this the drivers .chkput can now return -EBADR which will be
translated to bad request, so in case of opp if the auto answer is not
active it will let the agent to set a proper name to the object.
|
| |
|
|
|
|
|
| |
These five commits should solve the issue reported by Daniel Abraham
on the mailing list.
|
|
|
|
|
| |
As the PullBusinessCard method is asynchronous we have to wait until
we get some reply.
|