| Summary | problem in _getAttribute() of /usr/share/php/Horde/ActiveSync/Message/Base.php |
| Queue | Synchronization |
| Queue Version | Git master |
| Type | Bug |
| State | Not A Bug |
| Priority | 1. Low |
| Owners | |
| Requester | skhorde (at) smail (dot) inf (dot) fh-bonn-rhein-sieg (dot) de |
| Created | 5/17/13 (4711 days ago) |
| Due | |
| Updated | 5/30/13 (4698 days ago) |
| Assigned | 5/17/13 (4711 days ago) |
| Resolved | 5/30/13 (4698 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Not A Bug
since this report. Please reopen if you see this again.
- the default value for most attributes is false, so empty() will
return true. Instead, what you want to do is check if the
array_key_exists() there.
is being called from, as it should only be asking for properties
that are known to exist in a given EAS version.
but to get rid of the PHP error message, and _maybe_ telling the
developer, that something is wrong here.
I have added var_export(debug_backtrace(), true), let's see if I get
something.
Queue ⇒ Synchronization
State ⇒ Feedback
the default value for most attributes is false, so empty() will return
true. Instead, what you want to do is check if the array_key_exists()
there.
Regardless, I would need a backtrace to see where _getAttributes() is
being called from, as it should only be asking for properties that are
known to exist in a given EAS version.
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ problem in _getAttribute() of /usr/share/php/Horde/ActiveSync/Message/Base.php
Queue ⇒ Kronolith
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
in the log I have:
[kronolith] PHP ERROR: Undefined index: body [pid 30676 on line 497 of
"/usr/share/php/Horde/ActiveSync/Message/Base.php"]
I have added a log message there with:
if(empty($this->_properties[$name])) { // SKA
Horde::logMessage('SKA: property "'.$name.'" not set', 'WARN');
return $default;
}
When I now create a repeated event in the GUI and use ActiveSync to
get it, I see:
[horde] SKA: property "uid" not set [pid 3433 on line 498 of
"/usr/share/php/Horde/ActiveSync/Message/Base.php"]
HORDE: [kronolith] SKA: property "location" not set [pid 4958 on line
498 of "/usr/share/php/Horde/ActiveSync/Message/Base.php"]
HORDE: [kronolith] SKA: property "sensitivity" not set [pid 4958 on
line 498 of "/usr/share/php/Horde/ActiveSync/Message/Base.php"]
HORDE: [kronolith] SKA: property "reminder" not set [pid 5592 on line
498 of "/usr/share/php/Horde/ActiveSync/Message/Base.php"]
HORDE: [kronolith] SKA: property "body" not set [pid 5592 on line 498
of "/usr/share/php/Horde/ActiveSync/Message/Base.php"]
So, at least you should add the test for empty(), in order to get rid
of the PHP ERROR message