<?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 Disabling check of existing tables in SQLDirectory in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/disabling-check-of-existing-tables-in-sqldirectory/m-p/316744#M3745</link>
    <description>&lt;P&gt;Is there any way to skip the check of the existing tables in SQLHelper class?&lt;/P&gt;
&lt;P&gt;This is because for security reasons (lower-privileged database user). I need to use synonyms (oracle) in place of actual tables and it seems, looking at SQLHelper class, that nuxeo performs a preliminary check by table metadata that doesn't work when the synonyms are used.&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;
&lt;P&gt;More information:&lt;/P&gt;
&lt;P&gt;I performed a test changed this row in  org.nuxeo.ecm.directory.sql.SQLHelper in tableExists method:&lt;/P&gt;
&lt;P&gt;ResultSet rs = metaData.getTables(null, schemaName, table.getPhysicalName(), new String[] { "TABLE" });
ResultSet rs = metaData.getTables(null, schemaName, table.getPhysicalName(), new String[] { "TABLE", "VIEW", "SYNONYM"});&lt;/P&gt;
&lt;P&gt;and I haven't anymore errors&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 15:38:52 GMT</pubDate>
    <dc:creator>Antonio_Pescion</dc:creator>
    <dc:date>2017-06-01T15:38:52Z</dc:date>
    <item>
      <title>Disabling check of existing tables in SQLDirectory</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/disabling-check-of-existing-tables-in-sqldirectory/m-p/316744#M3745</link>
      <description>&lt;P&gt;Is there any way to skip the check of the existing tables in SQLHelper class?&lt;/P&gt;
&lt;P&gt;This is because for security reasons (lower-privileged database user). I need to use synonyms (oracle) in place of actual tables and it seems, looking at SQLHelper class, that nuxeo performs a preliminary check by table metadata that doesn't work when the synonyms are used.&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;
&lt;P&gt;More information:&lt;/P&gt;
&lt;P&gt;I performed a test changed this row in  org.nuxeo.ecm.directory.sql.SQLHelper in tableExists method:&lt;/P&gt;
&lt;P&gt;ResultSet rs = metaData.getTables(null, schemaName, table.getPhysicalName(), new String[] { "TABLE" });
ResultSet rs = metaData.getTables(null, schemaName, table.getPhysicalName(), new String[] { "TABLE", "VIEW", "SYNONYM"});&lt;/P&gt;
&lt;P&gt;and I haven't anymore errors&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 15:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/disabling-check-of-existing-tables-in-sqldirectory/m-p/316744#M3745</guid>
      <dc:creator>Antonio_Pescion</dc:creator>
      <dc:date>2017-06-01T15:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Disabling check of existing tables in SQLDirectory</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/disabling-check-of-existing-tables-in-sqldirectory/m-p/316745#M3746</link>
      <description>&lt;P&gt;You could change all your directory/vocabulary configurations to have &lt;CODE&gt;&amp;lt;createTablePolicy&amp;gt;never&amp;lt;/createTablePolicy&amp;gt;&lt;/CODE&gt; but that's a lot of directories to track down. Otherwise &lt;A href="https://jira.nuxeo.com/browse/NXP-19635"&gt;NXP-19635&lt;/A&gt; would solve this but it's not yet scheduled to be implemented.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 11:13:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/disabling-check-of-existing-tables-in-sqldirectory/m-p/316745#M3746</guid>
      <dc:creator>Florent_Guillau</dc:creator>
      <dc:date>2017-07-27T11:13:48Z</dc:date>
    </item>
  </channel>
</rss>

