<?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>Can&#039;t remove activesync device: JS error</title> 
  <pubDate>Sun, 05 Apr 2026 08:28:46 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/13657</link> 
  <atom:link rel="self" type="application/rss+xml" title="Can&#039;t remove activesync device: JS error" href="https://bugs.horde.org/ticket/13657/rss" /> 
  <description>Can&#039;t remove activesync device: JS error</description> 
 
   
   
  <item> 
   <title>services/prefs.php?app=horde&amp;group=activesync
On Chromium 3</title> 
   <description>services/prefs.php?app=horde&amp;group=activesync
On Chromium 33

It&#039;s impossible to remove a device.

The JS log says
Uncaught TypeError: Cannot read property &#039;id&#039; of undefined 
Uncaught TypeError: Cannot call method &#039;startsWith&#039; of null 

The HTML seems correct, so there must be a JS error somewhere
&lt;input class=&quot;horde-delete&quot; type=&quot;button&quot; value=&quot;Remove&quot; id=&quot;remove_BBALPHA:user@domain.tld&quot;&gt;

</description> 
   <pubDate>Sat, 01 Nov 2014 13:52:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86283</link> 
  </item> 
   
  <item> 
   <title>Cannot reproduce. Try updating Chrome.</title> 
   <description>Cannot reproduce. Try updating Chrome.</description> 
   <pubDate>Mon, 03 Nov 2014 15:14:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86300</link> 
  </item> 
   
  <item> 
   <title>&gt; Cannot reproduce. Try updating Chrome.
Just tried on Fire</title> 
   <description>&gt; Cannot reproduce. Try updating Chrome.
Just tried on Firefox. Same problem.

I&#039;ve cleared all caches and deleted all static files and still nothing...

Which files is responsible for the JS on that page?</description> 
   <pubDate>Thu, 06 Nov 2014 21:06:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86378</link> 
  </item> 
   
  <item> 
   <title>The JS specific to the activesync stuff is in horde/js/activ</title> 
   <description>The JS specific to the activesync stuff is in horde/js/activesyncprefs.js</description> 
   <pubDate>Thu, 06 Nov 2014 22:43:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86381</link> 
  </item> 
   
  <item> 
   <title>&gt; The JS specific to the activesync stuff is in horde/js/act</title> 
   <description>&gt; The JS specific to the activesync stuff is in horde/js/activesyncprefs.js
Thanks.

I&#039;ve checked the javascript and it can&#039;t work.

$(&#039;removedevice&#039;).setValue(this.devices[id.substr(7)].id);

id: remove_ABCD1234:my.user@domain.tld
[id.substr(7): ABCD1234:my.user@domain.tld
devices {ABCD1234}

ABCD1234:my.user@domain.tld does not exist in devices

It used to work, so some recent changes must have added the user after the id in the HTML code for the button.




</description> 
   <pubDate>Thu, 06 Nov 2014 23:25:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86382</link> 
  </item> 
   
  <item> 
   <title>Reformatting
id = &quot;remove_ABCD1234:my.user@domain.tld&quot;
id.</title> 
   <description>Reformatting
id = &quot;remove_ABCD1234:my.user@domain.tld&quot;
id.substr(7) = &quot;ABCD1234:my.user@domain.tld&quot;
devices {
    ABCD1234 {
        id: ABCD1234
        user:my.user@domain.tld
    }
}

&quot;ABCD1234:my.user@domain.tld&quot; does not exist in devices</description> 
   <pubDate>Thu, 06 Nov 2014 23:28:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86383</link> 
  </item> 
   
  <item> 
   <title>And I should have started with that... This is on the user s</title> 
   <description>And I should have started with that... This is on the user side, not the admin side.</description> 
   <pubDate>Thu, 06 Nov 2014 23:30:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86384</link> 
  </item> 
   
  <item> 
   <title>Still can&#039;t reproduce this. I don&#039;t have the username append</title> 
   <description>Still can&#039;t reproduce this. I don&#039;t have the username appended to the device id as you do. I have no idea where that is coming from.  Does the device list show the username as part of the device id also?  The html for the device list and the buttons is built in horde/templates/activesync/device_table.html.php - where you can clearly see it is using only the device name.</description> 
   <pubDate>Fri, 07 Nov 2014 01:30:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86385</link> 
  </item> 
   
  <item> 
   <title>You don&#039;t have a activesync_device_modify hook set, do you?</title> 
   <description>You don&#039;t have a activesync_device_modify hook set, do you?</description> 
   <pubDate>Fri, 07 Nov 2014 01:35:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86386</link> 
  </item> 
   
  <item> 
   <title>&gt; horde/templates/activesync/device_table.html.php - where y</title> 
   <description>&gt; horde/templates/activesync/device_table.html.php - where you can 
&gt; clearly see it is using only the device name.
Only in master.

In the 5.2 branch, the user is appended.
https://github.com/horde/horde/blob/FRAMEWORK_5_2/horde/templates/activesync/device_table.html.php

&lt;input class=&quot;horde-delete&quot; type=&quot;button&quot; value=&quot;&lt;?php echo _(&quot;Remove&quot;) ?&gt;&quot; id=&quot;remove_&lt;?php echo $d-&gt;id . &#039;:&#039; . $d-&gt;user ?&gt;&quot; /&gt;&lt;br /&gt;

That was to fix bug 13336, so that the delete button would delete the proper device+account association
https://github.com/horde/horde/commit/01b26397a1668fa25e2849f6b3b4710678544bf8</description> 
   <pubDate>Fri, 07 Nov 2014 08:27:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86387</link> 
  </item> 
   
  <item> 
   <title>Well, if you are not using master, then why did you select G</title> 
   <description>Well, if you are not using master, then why did you select Git master as the version in use?

Are you using GIt master, FW_5_2, or pear?</description> 
   <pubDate>Fri, 07 Nov 2014 15:08:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86388</link> 
  </item> 
   
  <item> 
   <title>&gt; Well, if you are not using master, then why did you select</title> 
   <description>&gt; Well, if you are not using master, then why did you select Git master 
&gt; as the version in use?
&gt;
&gt; Are you using GIt master, FW_5_2, or pear?
I&#039;m not sure I did according to the ticket log, but if I did I&#039;ve made a mistake.

I&#039;m using PEAR.</description> 
   <pubDate>Fri, 07 Nov 2014 15:25:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86389</link> 
  </item> 
   
  <item> 
   <title>There is a drop down when you create the ticket to indicate </title> 
   <description>There is a drop down when you create the ticket to indicate the application version.

I&#039;ll take a look again when I have time now that I know what version to look at.</description> 
   <pubDate>Fri, 07 Nov 2014 15:54:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86392</link> 
  </item> 
   
  <item> 
   <title>My apologies, it looks like it was changed to master by Mich</title> 
   <description>My apologies, it looks like it was changed to master by Michael S. when he reassigned the ticket to the correct queue.

Anyway, I&#039;ll take a look again when I have time.</description> 
   <pubDate>Fri, 07 Nov 2014 15:55:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86393</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit e3c6d57fb64b</title> 
   <description>Changes have been made in Git (master):

commit e3c6d57fb64bba712e60b964462e6786cbe67c67
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Sun Nov 9 13:57:51 2014 -0500

    Bug: 13657  Fix user activesync client actions.

 horde/lib/Prefs/Special/Activesync.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/e3c6d57fb64bba712e60b964462e6786cbe67c67</description> 
   <pubDate>Sun, 09 Nov 2014 18:58:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86400</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (FRAMEWORK_5_2):

commit 6b544</title> 
   <description>Changes have been made in Git (FRAMEWORK_5_2):

commit 6b54414787e96f6028bf36eb5d40d2d941fa640c
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Sun Nov 9 13:57:51 2014 -0500

    Bug: 13657  Fix user activesync client actions.
    
    Conflicts:
    	horde/lib/Prefs/Special/Activesync.php

 horde/lib/Prefs/Special/Activesync.php |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/6b54414787e96f6028bf36eb5d40d2d941fa640c</description> 
   <pubDate>Sun, 09 Nov 2014 19:02:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86401</link> 
  </item> 
   
  <item> 
   <title>Horde 5.2.3</title> 
   <description>Horde 5.2.3</description> 
   <pubDate>Sun, 09 Nov 2014 19:05:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86402</link> 
  </item> 
   
  <item> 
   <title>&gt; Horde 5.2.3
Thank you!</title> 
   <description>&gt; Horde 5.2.3
Thank you!</description> 
   <pubDate>Sun, 09 Nov 2014 19:19:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/13657#t86405</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
