Zotero URI not working

Hi,

I use Zotero's URI in the format "zotero://select/items/. When recently installing Zotero and Better Bibtex in Debian 11, those links stopped working.

I've tried to test if the Better Bibtex plugin could be malfunctioning. I've replaced the Better Bibtex's cite key for the original item ID used in Zotero, but it made no significant change. I've also attempted different link variations such as open-pdf, but to no avail.

No matter what is after "zotero://", the error in console is always the following:

[JavaScript Error: "URIError: malformed URI sequence" {file: "resource://gre/modules/osfile/ospath_unix.jsm" line: 188}]

I've used the default desktop file in zotero's install folder, changed even the Exec to contain either the %u or %U and the full path of the binary. This part is working since it runs zotero, but it can not open any links. Using zotero in command line presents the same behaviour, so it

What could this be? Is it my fault of it is a bug? Thanks in advance.

My report ID is 442831948
Using debian 11, contents of /proc/version:
Linux version 5.10.0-23-amd64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.179-1 (2023-05-12)
  • If you disable BBT, insert a citation into a note, export the note to Markdown, and click on that zotero://select link, does it work? If not, can you provide a Debug ID for that?
  • I've disabled it and its still not working. I've restarted zotero in debug mode and made severall calls for multiple files, both with "select/items/..." and "open-pdf/...".

    The debug ID is D285729514

    Thanks for the assistance
  • How did you install Zotero?
  • Downloaded the .tar.bz2 from the site, decompressed in /opt/ and placed a symbolic link for the binary in /usr/bin
  • And what's a full example of a zotero://select URL that you're trying?
  • I've tried to type the following in the terminal:

    $ xdg-open zotero://select/items/0_4NT84ETI
    $ xdg-open zotero://open-pdf/0_2F6TC8X2
    $ zotero zotero://select/items/0_73HSXRPF

    The same behaviour was observed when using xdg-open and zotero.

    I get those from the "Zotero Select Item" option in the Quick Copy menu, which is a translator that I've copied from GitHub, There's the link:

    https://raw.githubusercontent.com/Zotero-ODF-Scan/zotero-odf-scan/master/attic/Zotero Select Item.js

    I've also replaced the 0_ with O_ and removed them altogether (so it would match the Zotero/storage/ file name), but that was just random guessing.
  • edited June 21, 2023
    You should test what I actually asked above and provide the URL from that.
  • Ops, sorry. I've tested it and it returned links in the following pattern:
    zotero://select/library/items/8Z4XTCJ6

    I've tried clicking on it and using in command line, same issue.
  • And that logs "URIError: malformed URI sequence"?

    I don't think we've ever had any other reports of this, so it may be something specific to your system.

    Best I can suggest for the moment is to try the Zotero 7 beta, and if it still happens with that provide another Debug ID from startup with that and this URL and we can do some further debugging.
Sign In or Register to comment.