I'm running into issues restoring a resource from backup. I want to restore it to a temporary account. I used the following command:

zmrestore -a dove@domain.com -ca --prefix restored- -restoreToTime 20081101000000

This created the account "restored-dove@domain.com", but I cannot edit it in the admin GUI or log in as this user. The admin panel says:

Message: system failure: java.lang.ClassCastException: com.zimbra.cs.account.ldap.LdapAccount Error code: service.FAILURE Method: GetCalendarResourceRequest Details:soap:Receiver
/opt/zimbra/log/mailbox.log says:

2008-11-14 09:20:01,831 WARN [btpool0-8464] [name=user@domain.com;mid=3;ip=192.168.45.27;ua=Zim braWebClient - FF3.0 (Mac);] SoapEngine - handler exception
java.lang.ClassCastException: com.zimbra.cs.account.ldap.LdapAccount
at com.zimbra.cs.account.ldap.LdapProvisioning.getCal endarResourceById(LdapProvisioning.java:3377)
at com.zimbra.cs.account.ldap.LdapProvisioning.get(Ld apProvisioning.java:3363)
at com.zimbra.cs.service.admin.AdminDocumentHandler.p roxyIfNecessary(AdminDocumentHandler.java:134)
at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:402)
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:268)
at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:160)
at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:269)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:189)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1093)
at org.mortbay.servlet.UserAgentFilter.doFilter(UserA gentFilter.java:81)
at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter .java:132)
at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:716)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:406)
at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
at org.mortbay.jetty.handler.rewrite.RewriteHandler.h andle(RewriteHandler.java:350)
at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:506)
at org.mortbay.jetty.HttpConnection$RequestHandler.co ntent(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:396)
at org.mortbay.thread.BoundedThreadPool$PoolThread.ru n(BoundedThreadPool.java:442)
2008-11-14 09:20:01,980 INFO [btpool0-8464]
I discovered that I can access the account if I move it to a different domain using zmprov, but this shouldn't be necessary.

Am I doing something wrong, or is this a bug?

Thanks,
Ron