Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group library item cannot be retrieved by Better BibTeX for Zotero plugin #3077

Open
jordy101 opened this issue Nov 27, 2024 · 0 comments
Open

Comments

@jordy101
Copy link

jordy101 commented Nov 27, 2024

Debug log ID

BECDK43P-euc/6.7.256-7

What happened?

Recently, I noticed that when I'm right-clicking on Zotero reference in Zettlr to open it, it respond with "Could not open attachment. Is Zotero running?". So I started investigating the reason of this error and I found that if my Zotero reference is in a group library, then BBT plugin returns "<citekey> not found", and that's why Zettlr throw me an error message. I didn't manage to figure out if it's Zotero or BBT plugin, so I came here for a little help :)

Setup:

  • Ubuntu 22.04.5
  • Zettlr 3.3.1
  • Better BibTeX for Zotero plugin 6.7.256
  • Zotero 7.0.10

Protocol to reproduce the error:
In a terminal, type:

curl http://localhost:23119/better-bibtex/json-rpc -X POST -H "Content-Type: application/json" -H "Accept: application/json" --data-binary '{"jsonrpc": "2.0", "method": "item.attachments", "params": ["<citekey_of_your_paper_in_a_group_library>"]}'

and you may have {"jsonrpc":"2.0","error":{"code":-32602,"message":"<citekey_of_your_paper_in_a_group_library> not found"},"id":null}.

Suprinsingly, the command

curl http://localhost:23119/better-bibtex/json-rpc -X POST -H "Content-Type: application/json" -H "Accept: application/json" --data-binary '{"jsonrpc": "2.0", "method": "item.notes", "params": [["<citekey_of_your_paper_in_a_group_library>"]]}'

returns {"jsonrpc":"2.0","result":{"<citekey_of_your_paper_in_a_group_library>":["<content_of_the_note>"]},"id":null}. So I suppose that BBT plugin is able to find the paper but not the attachment (I'm note sure).

More suprinsingly, if I move the same paper to "My Library", the first command (the one with method "item.attachments") returns {"jsonrpc":"2.0","result":[{"open":"zotero://open-pdf/library/items/<zotero_ID>","path":"/path/to/zotero/data/storage/<zotero_ID>/<your_paper_name>.pdf"}],"id":null}. So I tried to cite a paper in "My Library" in Zettlr and to right-click on it and Zettlr successfully open the PDF.

I also tried to purge+reinstall Zettlr, BBT plugin and Zotero without success.

Voilà! Any idea on this bug?

Thanks in advance

@jordy101 jordy101 changed the title Can't found attachment of group library item Group library item cannot be retrieved by Better BibTeX for Zotero plugin Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant