<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>problem in _getAttribute() of /usr/share/php/Horde/ActiveSync/Message/Base.php</title> 
  <pubDate>Fri, 10 Apr 2026 16:31:11 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12262</link> 
  <atom:link rel="self" type="application/rss+xml" title="problem in _getAttribute() of /usr/share/php/Horde/ActiveSync/Message/Base.php" href="https://bugs.horde.org/ticket/12262/rss" /> 
  <description>problem in _getAttribute() of /usr/share/php/Horde/ActiveSync/Message/Base.php</description> 
 
   
   
  <item> 
   <title>I have problems with GUI - ActiveSync - Lightning,

in the</title> 
   <description>I have problems with GUI - ActiveSync - Lightning,

in the log I have:

[kronolith] PHP ERROR: Undefined index: body [pid 30676 on line 497 of &quot;/usr/share/php/Horde/ActiveSync/Message/Base.php&quot;]

I have added a log message there with:

if(empty($this-&gt;_properties[$name])) {	// SKA
		Horde::logMessage(&#039;SKA: property &quot;&#039;.$name.&#039;&quot; not set&#039;, &#039;WARN&#039;);
		return $default;
	}

When I now create a repeated event in the GUI and use ActiveSync to get it, I see:

[horde] SKA: property &quot;uid&quot; not set [pid 3433 on line 498 of &quot;/usr/share/php/Horde/ActiveSync/Message/Base.php&quot;]

HORDE: [kronolith] SKA: property &quot;location&quot; not set [pid 4958 on line 498 of &quot;/usr/share/php/Horde/ActiveSync/Message/Base.php&quot;]

HORDE: [kronolith] SKA: property &quot;sensitivity&quot; not set [pid 4958 on line 498 of &quot;/usr/share/php/Horde/ActiveSync/Message/Base.php&quot;]

HORDE: [kronolith] SKA: property &quot;reminder&quot; not set [pid 5592 on line 498 of &quot;/usr/share/php/Horde/ActiveSync/Message/Base.php&quot;]

HORDE: [kronolith] SKA: property &quot;body&quot; not set [pid 5592 on line 498 of &quot;/usr/share/php/Horde/ActiveSync/Message/Base.php&quot;]

So, at least you should add the test for empty(), in order to get rid of the PHP ERROR message</description> 
   <pubDate>Fri, 17 May 2013 12:44:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12262#t78142</link> 
  </item> 
   
  <item> 
   <title>&gt; I have problems with GUI - ActiveSync - Lightning,
&gt;
&gt; i</title> 
   <description>&gt; I have problems with GUI - ActiveSync - Lightning,
&gt;
&gt; in the log I have:
&gt;
&gt; [kronolith] PHP ERROR: Undefined index: body [pid 30676 on line 497 
&gt; of &quot;/usr/share/php/Horde/ActiveSync/Message/Base.php&quot;]
&gt;
&gt; I have added a log message there with:
&gt;
&gt; if(empty($this-&gt;_properties[$name])) {	// SKA
&gt; 		Horde::logMessage(&#039;SKA: property &quot;&#039;.$name.&#039;&quot; not set&#039;, &#039;WARN&#039;);
&gt; 		return $default;
&gt; 	}

An empty value for $this-&gt;_properties[$name] is perfectly valid here - 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.</description> 
   <pubDate>Fri, 17 May 2013 14:24:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12262#t78144</link> 
  </item> 
   
  <item> 
   <title>&gt; An empty value for $this-&gt;_properties[$name] is perfectly </title> 
   <description>&gt; An empty value for $this-&gt;_properties[$name] is perfectly valid here 
&gt; - the default value for most attributes is false, so empty() will 
&gt; return true. Instead, what you want to do is check if the 
&gt; array_key_exists() there.

Thanks, I changed to array_key_exists().

&gt; Regardless, I would need a backtrace to see where _getAttributes() is 
&gt; being called from, as it should only be asking for properties that 
&gt; are known to exist in a given EAS version.

My report was not necessarily about that the return value is wrong, 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&#039;s see if I get something.</description> 
   <pubDate>Fri, 24 May 2013 07:40:52 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12262#t78201</link> 
  </item> 
   
  <item> 
   <title>Going to close as I can&#039;t reproduce and lots has changed int</title> 
   <description>Going to close as I can&#039;t reproduce and lots has changed internally since this report. Please reopen if you see this again.</description> 
   <pubDate>Thu, 30 May 2013 19:48:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12262#t78324</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
