Commit graph

238 commits

Author SHA1 Message Date
Dan Stillman
ac5071e94e - Handle URL encoding of 'href' value in PROPFIND response when purging files
- Fix a scoping issue that could prevent some property files from being purged
- Properly handle systems with millisecond-level file mod time granularity (clearing of storage sync history is required)
- Fix issue that might have erroneously removed property files
2008-09-17 19:35:37 +00:00
Dan Stillman
083bdd4753 - Switch to using separate property files for storage sync rather than WebDAV properties, which aren't supported on all servers
- Fix potential security issues with symlinks in ZIP files due to Firefox brokenness
- Zotero.Utilities.HTTP.doGet() can now take a URI instead (and doesn't display the password that way for authenticated requests)
- For now, delete orphaned files immediately when using "Purge Orphaned Storage Files" instead of waiting a day
- Properly remove deleted files from delete log
- Better debugging of various things
2008-09-17 11:27:36 +00:00
Dan Stillman
be47357e48 Fix restore of Quick Copy pref in preferences 2008-09-17 04:51:07 +00:00
Simon Kornblith
3ae7cc308f don't install text/x-csl files as hidden 2008-09-17 04:25:18 +00:00
Dan Stillman
854842c003 Localize version header pref 2008-09-17 03:13:05 +00:00
Simon Kornblith
cccdbdb8e5 Zotero.Style.delete -> Zotero.Style.remove 2008-09-17 00:45:14 +00:00
Dan Stillman
e5bdfbb019 Full comment 2008-09-16 21:44:23 +00:00
Dan Stillman
21e7fe1fbc Handle URL-encoded 'href' values in PROPFIND request 2008-09-16 21:43:11 +00:00
Dan Stillman
d0e4852be6 Don't fail if SVN style symlink points to missing file 2008-09-16 21:39:02 +00:00
Dan Stillman
340f54c8b0 Add X-Zotero-Version header to HTTP requests to zotero.org 2008-09-16 20:11:27 +00:00
Simon Kornblith
bf8e4eae28 - implement Zotero.Styles.install, refine Zotero.Style.delete, and restore functionality to Styles prefpane
- allow deletion of multiple styles simultaneously
- split Zotero.Styles/Zotero.Style and Zotero.CSL into style.js and csl.js respectively
- add Zotero.File.getBinaryContents for binary-safe file reading
- add Zotero.MIMETypeHandler to provide a unified interface for registering observers and capturing MIME types with Zotero
2008-09-16 19:14:52 +00:00
Dan Stillman
0769e0e1f8 Accept 200 for PROPPATCH (and now compatible with Air Sharing iPhone app) 2008-09-16 06:25:44 +00:00
Dan Stillman
edad44c2db Allow 200 status code on DELETE in one other place 2008-09-16 04:34:48 +00:00
Dan Stillman
c9a3d49a5e - Add 'styles' directory with symlinks to actual styles for default styles
- Change schema.js to use 'styles' directory
2008-09-15 20:13:33 +00:00
Dan Stillman
1ab118c9af Don't throw error if there's no Zotero.Styles.lastCSL 2008-09-15 19:54:09 +00:00
Dan Stillman
b7fc5e66f2 Adds support for Microsoft IIS (5.1) WebDAV 2008-09-15 10:40:10 +00:00
Dan Stillman
eac0c1a94d - Remove overriding OPTIONS response to text/plain -- the problem is incorrect status codes generated by IIS that result in "No element found" errors
- Replace passwords in malformed XML messages when generating error reports
2008-09-15 09:48:27 +00:00
Dan Stillman
1619491157 Don't log XML error to console if OPTIONS response isn't XML 2008-09-15 08:57:23 +00:00
Dan Stillman
86678aba27 Install/upgrade support for flat-file translators and styles
Files are copied from translators.zip and styles.zip (or, for SVN installs, 'translators' and (for now) 'csl' directories) in the installation directory to 'translators' and 'styles' directories in the data directory. A build_zip file is provided for testing translators.zip (which will take precedence over a 'translators' directory) but isn't required.

The timestamp stored in repotime.txt is stored in the database and is sent to the server for updates since that time.

Updating a file in [install-dir]/translators or [install-dir]/styles automatically copies all files in that directory to the data directory.
2008-09-12 22:09:54 +00:00
Simon Kornblith
85290b6c95 add hidden property to styles 2008-09-11 23:38:34 +00:00
Dan Stillman
79ef2eac4d Better startup error debugging 2008-09-11 23:19:23 +00:00
Simon Kornblith
ca1cf1c8a3 use more consistent function names 2008-09-11 22:58:18 +00:00
Simon Kornblith
a4032fe817 remove debug code 2008-09-11 22:07:57 +00:00
Simon Kornblith
d2c3f0fa12 add support for parent/child relationships 2008-09-11 22:06:31 +00:00
Simon Kornblith
f06ce2705c implements Zotero.Styles and Zotero.Style using flat files 2008-09-11 21:29:05 +00:00
Simon Kornblith
f6b1d6e56e better handling of invalid JSON objects 2008-09-11 20:53:15 +00:00
Simon Kornblith
7d9493827e fix bug in translator caching 2008-09-11 20:45:01 +00:00
Simon Kornblith
89e7d6a1ef don't run translators on about: URIs 2008-09-11 19:40:38 +00:00
Simon Kornblith
492d3a8cb2 shuffle around initialization code 2008-09-11 19:35:53 +00:00
Simon Kornblith
d6f0dc28ef use Zotero.log instead of calling consoleService.logMessage() directly 2008-09-11 18:04:56 +00:00
Simon Kornblith
643ada4905 Convert translator architecture to use files
This will break translation for the dev XPI and on the trunk until Dan commits his part of this (or you copy the translators dir in SVN to the zotero dir in your profile dir)
2008-09-11 17:35:56 +00:00
Dan Stillman
f85f21db32 Merge r3371 to trunk 2008-09-11 17:30:40 +00:00
Dan Stillman
4648ae0f3b Zotero.getStylesDirectory(), Zotero.getTranslatorsDirectory(), and Zotero.File.createDirectoryIfMissing(dir) 2008-09-11 17:20:09 +00:00
Dan Stillman
6a3c62c23c Tweak to previous commit -- use 'this' instead of full chain 2008-09-10 16:55:45 +00:00
Dan Stillman
7f76b35ab4 Clear last sync error when starting sync 2008-09-10 16:53:11 +00:00
Dan Stillman
62290e0bcd Additional debugging for unexpected status code storage error 2008-09-10 15:50:25 +00:00
Simon Kornblith
9cb95ac77c don't show option to retrieve metadata if PDF indexer is not installed 2008-09-09 21:01:47 +00:00
Simon Kornblith
0284e5339b remove cache file even when it is < 20 lines long 2008-09-09 16:03:37 +00:00
Simon Kornblith
3fd346ed06 close input stream in recognizePDF 2008-09-09 16:00:40 +00:00
Dan Stillman
ecfc44ee57 Closes #1166, Add http access to WebDAV 2008-09-09 15:19:22 +00:00
Dan Stillman
1f334a2eb8 Fixes storage upload with subfolders 2008-09-09 14:15:53 +00:00
Dan Stillman
c6de353d23 Fix error and blank CR window when an item with tags is in conflict 2008-09-05 06:03:45 +00:00
Dan Stillman
5bc80d4cfe Additional output for debugging tag problem 2008-09-05 06:00:03 +00:00
Dan Stillman
49593266e1 Generate conflict if number of item creators changed 2008-09-05 05:42:59 +00:00
Dan Stillman
4d7fc6b10c Include response text from server in error log on Invalid Response sync error 2008-09-05 04:29:34 +00:00
Dan Stillman
e38c86cba2 Remove referrer in recognizePDF requests 2008-09-05 04:08:56 +00:00
Dan Stillman
714011d1d3 Fix ACCESS_DENIED storage sync error on Windows 2008-09-05 02:42:54 +00:00
Dan Stillman
0dbd02abe9 Fix regression from r3335 that caused some creator changes not to sync 2008-09-04 22:27:51 +00:00
Dan Stillman
c822aad2b6 - Fix "Creator must be a Zotero.Creator object in Zotero.Item.setCreator()" problem -- now looks for creator data within item block when it doesn't exist locally
- Fix a couple other problems with creators that could cause changes not to be synced or to cause unnecessary conflicts
2008-09-04 20:27:41 +00:00
Dan Stillman
e3acd9a513 Better cleanup of cached data after sync error
Clearer error message for "Creator must be a Zotero.Creator object in Zotero.Item.setCreator()" problem (which isn't yet fixed)
2008-09-03 18:04:50 +00:00