<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Mendeley extensions fails to introduce new citation"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=136860">136860</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Mendeley extensions fails to introduce new citation
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0.1.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jgelcon@yahoo.com.ar
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Description:
When trying to add a new citation, the extension crashes while "formatting
ctation", and gives the following error message:

Error: Se ha producido una excepción 
Type: com.sun.star.uno.RuntimeException
Message: SwXReferenceMark::InsertRefMark(): cannot insert attribute.
At line: 938

At the moment, no new citations can be added, nor can I modify the ones already
present. It might be caused by references which have been modified on Mendeley
library, but I try to delete those references and add them again and the
extension keeps crashing.

It seems that deleting the bibliography list and creating it again fixes the
problem (at least once).

Steps to Reproduce:
1. Insert citations with Mendeley extension. Save and close the file.
2. Modify reference on Mendeley.
3. Open again the file and try to add new citation or modify existing one.
4. Delete bibliography list.
5. Repeat 1-3.

Actual Results:
Error: Se ha producido una excepción 
Type: com.sun.star.uno.RuntimeException
Message: SwXReferenceMark::InsertRefMark(): cannot insert attribute.
At line: 938

And instead of reference, shows "Formatting citation"

Expected Results:
Correct citation (f.i., Jones et al 2020)


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: es
Module: TextDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: yes</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>