Commit 7ee6c88
fix: release v3.2.2 for bytes temp-file fallback
Why: The 3.2.1 add-on still fails the live `upload_pdf` proof after the
bytes fallback is selected. The add-on reports `OS is not defined`, which
means the fallback path itself is crashing before Zotero can import the
materialized PDF.
Changes:
- Replace `OS.Path.join` usage in the bytes materialization helper with the
temp file object returned by `Zotero.getTempDirectory()`.
- Replace `OS.File.remove` cleanup with `Zotero.File.pathToFile(...).remove(false)`
so the fallback path stays within APIs available in the add-on runtime.
- Bump the release metadata to 3.2.2 and regenerate `updates.json` for the
new GitHub release asset.
Decisions:
- Kept the fix minimal and isolated to the bytes fallback path because the
attach-by-path route and the new 3.2.1 contract were otherwise correct.
- Released another patch version because this is a runtime compatibility fix,
not a new endpoint or behavior line.
Expected outcome: After updating to v3.2.2, the add-on should stop throwing
`OS is not defined`, allowing the client-side bytes fallback to complete the
stored PDF attachment path.
Co-Authored-By: GPT-5 <noreply@google.com>1 parent 530ef17 commit 7ee6c88
3 files changed
+8
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 202 | + | |
206 | 203 | | |
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
211 | | - | |
212 | | - | |
| 208 | + | |
| 209 | + | |
213 | 210 | | |
214 | 211 | | |
215 | 212 | | |
| |||
273 | 270 | | |
274 | 271 | | |
275 | 272 | | |
276 | | - | |
| 273 | + | |
277 | 274 | | |
278 | 275 | | |
279 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
0 commit comments