Dan Stillman
892708d071
Include path in debug output when nsIFile is passed to getContentsAsync()
2016-02-06 15:20:17 -05:00
Dan Stillman
bbdfebf8f6
Avoid repeated search when clearing quick search bar
2016-02-06 15:20:02 -05:00
Dan Stillman
3b402c564c
Closes #900 , Change fields order for cases in system.sql
2016-02-06 04:12:07 -05:00
Dan Stillman
49068d1d35
Initialize styles in Cite prefpane if not yet loaded
...
Fixes #904
2016-02-06 03:30:54 -05:00
Dan Stillman
27de351615
Fix middle pane status messages while using quick search
2016-02-06 03:26:31 -05:00
Dan Stillman
47e9f82927
Avoid repeated file existence checks for some files in getImageSrc()
2016-02-06 03:26:01 -05:00
Dan Stillman
1855b5e1f9
A couple better error messages
2016-02-04 04:05:58 -05:00
Dan Stillman
72c927c840
Fix Zotero.Utilities tests, which were being skipped accidentally
...
Unfortunately this will need to be partly redone, since retrieveItem(), and
therefore itemToCSLJSON(), and therefore itemToExportFormat(), need to be
synchronous. The item data load statements in itemToExportFormat() will
probably need to be performed earlier, when they can be async, and made
available to the session for retrieval by retrieveItem(), but I'll let someone
more familiar with the citation infrastructure do that.
This restores some code in retrieveItem() that may have been accidentally
removed in a merge, though it probably won't be useful anymore anyway.
Addresses #529
2016-02-04 04:05:46 -05:00
Dan Stillman
d2d7f2368c
Remove 'version' workaround now that field is named 'versionNumber'
2016-02-04 03:53:04 -05:00
Dan Stillman
9765d06d1d
Use "new" with File constructor, which now requires it
2016-02-03 12:30:24 -05:00
Dan Stillman
7474b31e96
Don't hang if Zotero.debug() is called on a window
2016-02-03 01:19:44 -05:00
Dan Stillman
9c2a7a9e77
Only retry file sync requests once after 500 error in tests
...
Now that 500 errors are retried in file downloads (ec28c5a3
), we have to
override the default backoff schedule in order to get expected failures.
This also fixes an error that occurred on a retried download.
2016-02-03 01:19:15 -05:00
Dan Stillman
9fb85a263a
Fix LIKE errors in Fx44
...
In Fx44, SQL queries must use '?' with LIKE and cannot concatenate a
placeholder string (e.g., 'foo%'). This is for Sqlite.jsm only, so it
doesn't affect 4.0.
2016-02-03 01:13:30 -05:00
Dan Stillman
7c7ea6a66d
Fix PDF recognition
...
But leave tests disabled, since they should maybe be mocked?
2016-02-02 06:47:54 -05:00
Dan Stillman
8a85114c13
Update comments to recommend Zotero.HTTP.request() instead of .promise()
2016-02-02 05:31:35 -05:00
Dan Stillman
e8046d8ad2
Use Promise.coroutine() instead of Zotero.spawn() for saveItems()
...
(Use -w for diff)
2016-02-02 05:30:54 -05:00
Dan Stillman
a6caa14412
Fix Add Item by Identifier (and search translation in general)
2016-02-02 05:29:02 -05:00
Dan Stillman
741ca99c10
Restore open/save dialog when cancelling MIME type intercept
...
Behavior from #617 apparently got lost in the transition to master
2016-02-02 02:51:52 -05:00
Dan Stillman
d0a99fc0a1
Merge branch '4.0'
2016-02-02 02:44:51 -05:00
Dan Stillman
04d957a95c
Fix "Add Identifier by ID" in Fx45
...
const doesn't create a property on the global object in Fx45
2016-02-02 02:03:46 -05:00
Dan Stillman
ef180d190f
Update submodules
2016-02-01 04:43:49 -05:00
Dan Stillman
950e1a5047
Don't call stop handler twice in storage stream listener
...
The second status code would be 0, so it could result in spurious
S3 retries.
Backported from master
2016-02-01 04:20:22 -05:00
Dan Stillman
ec28c5a35d
Retry S3 requests on 500 or 503 in addition to interruption
...
And adjust S3 success/backoff counters on success
2016-02-01 03:58:45 -05:00
Dan Stillman
eb85fdc42e
An invalid translator file shouldn't break all translation
...
For now, delete it and clear it from the cache so it's updated properly going
forward, but really we want to reinstall the correct file automatically
(#903 ).
2016-01-29 05:34:26 -05:00
Dan Stillman
ab9330d88e
Don't show open/save dialog in addition to style installation prompt
...
This apparently has been happening for a year, since #617 .
Might be better to show open/save on cancel, as implemented for the
RIS/BibTeX prompt in 4ecdd55
(which caused this), but that would have to
wait for the better promise handling in 5.0. Doing "Save Link As..." for
a CSL file also seems a bit more straightforward than for RIS/BibTeX,
which can be served in complicated ways.
2016-01-23 02:26:06 -05:00
Dan Stillman
31d2f6aecb
Merge branch '4.0'
2016-01-22 01:10:56 -05:00
Dan Stillman
e206d70595
Fix "undefined" prefix from md5Async()
2016-01-22 01:10:08 -05:00
Dan Stillman
bf58ba6faa
Fix remaining old-style array comprehensions
2016-01-20 01:26:41 -05:00
Dan Stillman
3071b8093b
Merge branch '4.0'
2016-01-20 01:23:02 -05:00
Dan Stillman
e873617890
Fix trashing of descendant items when deleting a collection
...
Also allows 'collections' property to be passed to
createDataObject()/createUnsavedDataObject() in tests.
2016-01-18 13:50:46 -05:00
Dan Stillman
a80f130997
Avoid temporary table when getting tags for current view
...
Instead, pass ids directly to SQLite. This seems to take about the same
amount of time or a little less (by avoiding the time it takes to start
a transaction) and avoids blocking other transactions when switching
views.
2016-01-18 13:50:46 -05:00
Dan Stillman
5ef89b1d0f
Speed up DB methods slightly by avoiding unnecessary yields
...
And tidy some things up
2016-01-17 00:50:17 -05:00
Dan Stillman
0a5e31a4e1
Fix crashes due to "Parameter 4 is undefined" error
...
Broken in 7d404e8d4a
2016-01-14 19:42:25 -05:00
Dan Stillman
da71d6201a
Fix file sync error due to Zotero.Utilities.Internal.md5() brokenness
...
Broken in 7d404e8d4a
2016-01-14 19:25:15 -05:00
Dan Stillman
c4d67c5b5e
Don't unlink sync account in prefs when offline
2016-01-14 13:04:29 -05:00
Dan Stillman
99bba5d198
Allow Zotero.HTTP.request() for non-HTTP URLs when offline
...
Otherwise Zotero throws an error at startup when offline.
2016-01-14 12:47:52 -05:00
Dan Stillman
f05b98ba20
Fetch top-level items before other items when syncing
2016-01-14 01:50:13 -05:00
Dan Stillman
cd41609761
Improve debug logging for database transactions
...
Among other things, add an id to each DB transaction for better tracking
2016-01-13 04:24:27 -05:00
Dan Stillman
02eea99128
Get latest cache object versions in bulk during sync downloads
2016-01-12 21:57:00 -05:00
Dan Stillman
7d404e8d4a
Closes #896 , Legacy array/generator comprehension is removed in Firefox 46
...
Possible there are some bugs here (and it also may fix a couple existing bugs).
2016-01-12 01:58:38 -05:00
Dan Stillman
02b29ff14b
Fix SQL error switching from ZFS to WebDAV
2016-01-09 17:02:13 -05:00
Dan Stillman
d53b9b993f
Fix 'debug: false' option in DB.queryAsync()
2016-01-09 16:59:10 -05:00
Dan Stillman
d0d818840a
Switch temp table inserts from SELECT...UNION to VALUES (x),(x)...
...
Supported as of SQLite 3.7.11
Also use hard-coded values instead of bound params
2016-01-09 16:58:40 -05:00
Dan Stillman
2ac27be95e
Upgrade to Bluebird 3.1.1
2016-01-08 21:07:10 -05:00
Dan Stillman
a8c364d830
Remove duplicate ItemFields.isMultiline method
2016-01-08 04:31:28 -05:00
Dan Stillman
9fb42b6788
Fixes #890 , Use text area for Book Title
2016-01-08 04:30:47 -05:00
Dan Stillman
08562e50cd
Fixes #877 , getPrimaryIDForType doesn't work due to typo
2016-01-08 03:44:38 -05:00
Dan Stillman
818ef28f88
Fixes #876 , Uncaught error in getTypesForItemType with valid input
2016-01-08 03:43:10 -05:00
Dan Stillman
703cfd1fc5
Closes #521 , [Async DB] Update DB integrity check for new schema
...
Most checks are now just foreign key checks and can be checked with
"PRAGMA foreign_key_checK".
The DB Repair Tool will need to be updated to handle the new schema (but
still accept the old one).
2016-01-08 03:09:55 -05:00
Dan Stillman
4a5de628ce
Fix WebDAV test failure
2016-01-07 16:48:57 -05:00