<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Base macros cannot be digitally signed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=97694">bug 97694</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>serval2412@yahoo.fr
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">See Also</td>
           <td>
                
           </td>
           <td>https://bugs.documentfoundation.org/show_bug.cgi?id=143400
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Base macros cannot be digitally signed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=97694#c29">Comment # 29</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Base macros cannot be digitally signed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=97694">bug 97694</a>
              from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
        <pre>During tests on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Query with most functions could not be created in GUI"
   href="show_bug.cgi?id=143400">https://bugs.documentfoundation.org/show_bug.cgi?id=143400</a>
"Query with most functions could not be created in GUI", I noticed this log:
warn:dbaccess:29276:29276:dbaccess/source/core/dataaccess/ModelImpl.cxx:932: 
com.sun.star.container.NoSuchElementException message:
/home/julien/lo/libreoffice/package/source/xstor/xstorage.cxx:2978: 
/home/julien/lo/libreoffice/package/source/xstor/xstorage.cxx:2978

Debugging a bit, I noticed it throwed in
dbaccess/source/core/dataaccess/ModelImpl.cxx:
901 xMetaInf->copyElementTo(aScriptSignName, xTargetMetaInf, aScriptSignName);
(see
<a href="https://opengrok.libreoffice.org/xref/core/dbaccess/source/core/dataaccess/ModelImpl.cxx?r=24a3d4ee#901">https://opengrok.libreoffice.org/xref/core/dbaccess/source/core/dataaccess/ModelImpl.cxx?r=24a3d4ee#901</a>)
gdb indicates "aScriptSignName" contains "macrosignatures.xml".


But I don't understand why LO goes on this part.
Indeed, bTryToPreserveScriptSignature is false by default but then:
    850     bool bIsEmbedded = sLocation.startsWith("vnd.sun.star.pkg:") &&
sLocation.endsWith("/EmbeddedDatabase");
    851     if (!bIsEmbedded && !sLocation.isEmpty()
    852         && (aSignatureState == SignatureState::OK || aSignatureState ==
SignatureState::NOTVALIDATED
    853             || aSignatureState == SignatureState::INVALID
    854             || aSignatureState == SignatureState::UNKNOWN))
    855     {
    856         bTryToPreserveScriptSignature = true;
...

The odb file from <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Query with most functions could not be created in GUI"
   href="show_bug.cgi?id=143400">tdf#143400</a> uses embedded HSQLDB so it seems this line:
bool bIsEmbedded = sLocation.startsWith("vnd.sun.star.pkg:") &&
sLocation.endsWith("/EmbeddedDatabase");
is wrong.

On gdb, I got:
(gdb) p sLocation
$3 = "file:///tmp/DefaultDate.odb"
so bIsEmbedded can't be true in my case.

Unless we don't talk about the "embeddedness" of the database but the
"embeddedness" about something else?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>