<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic audit search in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/audit-search/m-p/328058#M15059</link>
    <description>&lt;P&gt;I'm working with audit search. Using the &lt;CODE&gt;AuditQueryBuilder&lt;/CODE&gt; class. In the unit test environment, the following code...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Calendar cal = Calendar.getInstance();
AuditQueryBuilder builder = new AuditQueryBuilder().predicates(Predicates.gte("eventDate", cal.getTime()));
Framework.getService(AuditReader.class).queryLogs(builder);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;...throws down in: &lt;CODE&gt;org.hiberate.type.TimeStampType.toString()&lt;/CODE&gt; with a &lt;CODE&gt;ClassCastException&lt;/CODE&gt;. The hibernate code is manipulating the Date instance from Nuxeo and then failing when it tries to map the parameter into a query. Does anyone know of a way around this for unit testing? Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 16:31:23 GMT</pubDate>
    <dc:creator>Eric_Ace</dc:creator>
    <dc:date>2018-02-13T16:31:23Z</dc:date>
    <item>
      <title>audit search</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/audit-search/m-p/328058#M15059</link>
      <description>&lt;P&gt;I'm working with audit search. Using the &lt;CODE&gt;AuditQueryBuilder&lt;/CODE&gt; class. In the unit test environment, the following code...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Calendar cal = Calendar.getInstance();
AuditQueryBuilder builder = new AuditQueryBuilder().predicates(Predicates.gte("eventDate", cal.getTime()));
Framework.getService(AuditReader.class).queryLogs(builder);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;...throws down in: &lt;CODE&gt;org.hiberate.type.TimeStampType.toString()&lt;/CODE&gt; with a &lt;CODE&gt;ClassCastException&lt;/CODE&gt;. The hibernate code is manipulating the Date instance from Nuxeo and then failing when it tries to map the parameter into a query. Does anyone know of a way around this for unit testing? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:31:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/audit-search/m-p/328058#M15059</guid>
      <dc:creator>Eric_Ace</dc:creator>
      <dc:date>2018-02-13T16:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: audit search</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/audit-search/m-p/328059#M15060</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It looks like hibernate version we use doesn't handle &lt;CODE&gt;ZonedDateTime&lt;/CODE&gt;, which is the type produced by &lt;CODE&gt;Literals.valueOf&lt;/CODE&gt; &lt;A href="https://github.com/nuxeo/nuxeo/blob/master/nuxeo-features/nuxeo-platform-audit/nuxeo-platform-audit-core/src/main/java/org/nuxeo/ecm/platform/audit/service/LogEntryProvider.java#L323"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Could you give us the stacktrace in order to create a jira issue ?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 10:02:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/audit-search/m-p/328059#M15060</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2018-02-14T10:02:51Z</dc:date>
    </item>
  </channel>
</rss>

