Timeline
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

81 check-ins using file src/file.c version 5c47646bb2

2011-10-07
02:14
pulled in tonight's libcson changes, which halve the number of allocations needed for creating new JSON values. check-in: 130cc65cb5 user: stephan tags: json-multitag-test, json
2011-10-06
23:29
fixed a bug in the handling of /json/tag/find --raw format (caused by moving code w/o paying attention). Added a warning when the given tag is not found. check-in: be41009046 user: stephan tags: json-multitag-test, json
23:12
Added /json/tag/find. check-in: 9d27ade314 user: stephan tags: json-multitag-test, json
21:25
Added /json/tag/cancel. check-in: 0b685fcc0f user: stephan tags: json-multitag-test, json
21:14
Added /json/tag/add. check-in: bd9d7ce2f6 user: stephan tags: json-multitag-test, json
20:10
Added /json/tag/list and infrastructure for pending (add, cancel, find) ops. check-in: 1088cf2107 user: stephan tags: json-multitag-test, json-add-tag-test, json
17:12
Added /json/resultCodes. check-in: 71a1d4483f user: stephan tags: json-multitag-test, json
15:51
minor doc fix before switching PCs for the weekend. check-in: a403544f2a user: stephan tags: json-multitag-test, json
15:47
fixed comparison logic which broken dumbing-down of error codes (caused them to never be dumbed-down). check-in: f93e059f6c user: stephan tags: json-multitag-test, json
2011-10-05
12:04
experimentally added "command" property to all responses to simplify response handler dispatching in some experimental Java client code. check-in: 8f12ac9896 user: stephan tags: json-multitag-test, json
12:03
minor cosmetic cleanups. check-in: 2dac80dd9f user: stephan tags: json-multitag-test, json
07:01
fixed a url-updating problem caused by recent refactoring. check-in: 4b70853483 user: stephan tags: json-multitag-test, json
06:42
A few internal cosmetic cleanups, added json_get_wiki_page_by_rid(). check-in: afb3c89fe6 user: stephan tags: json-multitag-test, json
05:41
Tweaks to the JS API, mainly to simplify a common 2-callbacks-per-event use case. Added missing json2.js. check-in: cf10d9d9b9 user: stephan tags: json-multitag-test, json
03:32
const-correctness tweak in db_text(). check-in: 30431ff903 user: stephan tags: json-multitag-test, json
02:41
Doh... accidentally changed resultCodes from strings to ints during refactoring. check-in: 36384da861 user: stephan tags: json-multitag-test, json
02:31
fixed a mis-sorting in the json timeline, caused by refactoring in a recent commit. check-in: 824ed5fb65 user: stephan tags: json-multitag-test, json
02:26
Consolidated more of the CLI/HTTP/CLI-with-POST arg handling disparities into the json_find_option() family of functions. check-in: 5b4a3f12dc user: stephan tags: json-multitag-test, json
00:53
lots of minor cleanups in JSON error handling (mostly cosmetic). Added some new FOSSIL-xxxx codes. check-in: 2e41514fb7 user: stephan tags: json-multitag-test, json
2011-10-04
23:40
merged and conflict-resolved trunk [c0274f996266aef]. check-in: 4fbf77d4f3 user: stephan tags: json-multitag-test, json
23:07
Merge the --args FILENAME patch into trunk. check-in: c0274f9962 user: drh tags: trunk
23:03
Simplify the implementation of the --args FILENAME patch, as requested by the FIXME comment. check-in: eb8d989dae user: drh tags: stephan-hack
21:41
Initial --args FILENAME patch. Impl seems over-complex to me, but works as described in the list thread. check-in: 8a6568c3a3 user: stephan tags: stephan-hack
21:28
merging with trunk [d4a341b49dd1b701] before applying --args FILENAME patch, to simplify downstream merge. check-in: 312d522fe4 user: stephan tags: stephan-hack
20:02
Started adding /json/artifact tickets support, but grokking tkt.c is more than i am up for tonight. Changed how permissions checks are done under /json/artifact (previous approach is just plain silly without C++ templates) check-in: cee8bc6727 user: stephan tags: json-multitag-test, json
19:17
fixed a c99ism. check-in: cd67b945d7 user: stephan tags: json-multitag-test, json
15:20
Add HMAC-SHA1 implementation. Closed-Leaf check-in: dcee34b25f user: dmitry tags: multisession
15:15
Merge protection against timing attacks into trunk. check-in: d4a341b49d user: dmitry tags: trunk
14:38
Merge trunk into dmitry-security branch. Closed-Leaf check-in: f4eb0f5afc user: dmitry tags: dmitry-security
14:34
Rename constant_time_eq to constant_time_cmp to better indicate that these functions return 0 when values are equal, like memcmp, strcmp, etc., not truth, to avoid possible mistakes. check-in: d244c484e7 user: dmitry tags: dmitry-security
14:28
Revert the previous change after thinking more about it.

Login cards in the sync protocol have the following format:

login userid nonce signature

Nonce is SHA-1 of the message that follows this line, signature is SHA-1 of the concatenation of the nonce and user's shared secret. The successful timing attack can reveal only signature for this p... check-in: 13a9a1244c user: dmitry tags: dmitry-security

09:06
/json/wiki/get argument handling cleanup so that it works with the newer command=... approach. check-in: 96fe10ab54 user: stephan tags: json-multitag-test, json
2011-10-03
16:34
Disabling Cache-control: no-store, as it made firefox forget about form field contents on back/forward in history.

Resolution achieved by a minimal consensus at this thread on the mailing list. check-in: 3fac77d7b0 user: viriketo tags: trunk

2011-10-02
23:59
Minor error handling cleanups (nicer resultText strings). Removed a call to sqlite3_config() from the JSON bootstrap code which _seems_ to be the cause of an SQLITE_MISUSE warning. check-in: af72cc7599 user: stephan tags: json-multitag-test, json
23:43
Accommodated recent API changes. check-in: 901a0133e3 user: stephan tags: json-multitag-test, json
23:21
Fixed an incorrect setting of the content type in one error-handling case. check-in: 35e4e9188b user: stephan tags: json-multitag-test, json
22:58
Added /json/branch/create. Finally found g.zErrMsg, and started using it in conjunction with json error reporting. check-in: 8eaf58ee51 user: stephan tags: json-multitag-test, json
21:01
moved /json/branch code into its own file. check-in: 1a4c874e43 user: stephan tags: json-multitag-test, json
20:15
renamed json timeline "showFiles" option to "files" because we do not really "show" anything." check-in: bc7af5192a user: stephan tags: json-multitag-test, json
19:57
Added tag/branch option to /json/timeline/ci, analog to HTML mode t/r options. check-in: 762128512a user: stephan tags: json-multitag-test, json
19:56
Added empty_Stmt, analog to empty_Blob, to work around an assertion triggered during some error handling code. check-in: 4db6d7c5ce user: stephan tags: json-multitag-test, json
18:28
Merged in trunk [ae64088627df]. Added /json/timeline/checkin as alias for /json/timeline/commit (checkin is historically more correct/consistent). check-in: a9070a4944 user: stephan tags: json-multitag-test, json
18:18
s/userName/name/, for consistency. check-in: 94689bbf29 user: stephan tags: json-multitag-test, json
13:30
minor hack to name_search() to make it stop searching after it determines there is an ambiguity. check-in: ae64088627 user: stephan tags: trunk
12:41
json mode now accepts command=string request parameter if path length is 1 (no subcommand was specified). check-in: 225fd3dad3 user: stephan tags: json-multitag-test, json
12:31
initial code for reading POST data from a file/stdin in CLI mode. check-in: 8145cdbf3b user: stephan tags: json-multitag-test, json
11:43
minor cleanups and doc additions to the json/artifact handling. check-in: 6d0667831a user: stephan tags: json-multitag-test, json
11:16
Reorganized json_page_artifact(), fixed a C99ism, fixed permissions check. check-in: c926170034 user: stephan tags: json-multitag-test, json
11:15
removed an implemented TODO reminder. check-in: f270f0b5c1 user: stephan tags: json-multitag-test, json
10:51
Added missing license header to new files. Updated (c) date to 2011. check-in: 8a665715c2 user: stephan tags: json-multitag-test, json
2011-10-01
20:50
Variable used for return value of send(2) must be signed, otherwise error conditions just result in infinite loops. check-in: 5e3519873f user: joerg tags: trunk
07:58
s/commit/checkin/, for consistency. s/artifactType/type/. check-in: 44e032aa8a user: stephan tags: json-multitag-test, json
07:47
more consolidation of timeline/artifact code. check-in: cc444a02cd user: stephan tags: json-multitag-test, json
07:04
more timeline/artifact refactoring. check-in: 22fc0ab81b user: stephan tags: json-multitag-test, json
06:45
Started refactoring some of the timeline/artifact components into reusable parts. Comment edited only to test json responses which differentiate between pristine and edited commits. check-in: b1f9257213 user: stephan tags: json-multitag-test, json
05:58
Started adding artifact-type-dependent result data to /json/artifact output. check-in: a893fff3ca user: stephan tags: json-multitag-test, json
05:58
minor cleanups. check-in: 6ee6486e02 user: stephan tags: json
05:57
Added json_new_int() convenience function. check-in: ccd66b9b3c user: stephan tags: json
05:09
Added initial /json/artifact code, but it currently can only report the type of a given artifact. check-in: 6372d95165 user: stephan tags: json
05:05
minor db_column usage cleanup. check-in: cf8b20ea1f user: stephan tags: json
05:05
added test for /json/wiki/get. check-in: 2b7edce38d user: stephan tags: json
05:04
Changed some of the exception-throwing code to propagate instead of ingore. check-in: e8fe84bc2c user: stephan tags: json
04:03
Cleaned up wiki formatting code a bit. Added wiki uuid to /json/wiki/get response payload. check-in: 3f512ca41b user: stephan tags: json
03:37
Added format=raw|html to /json/wiki/get. check-in: c990e7ec25 user: stephan tags: json
02:19
minor cleanups in the /json/login payload code. check-in: 3bdae54cae user: stephan tags: json
02:12
Changed /json/login output payload structure. check-in: 88ddf2cbce user: stephan tags: json
2011-09-30
17:00
minor ajax test code cleanups. check-in: 7eb52b23ae user: stephan tags: json
16:36
Added more integration tests. check-in: 10e677c968 user: stephan tags: json
16:35
added preliminary support for cookies in the rhino ajax client, but it does not seem to be doing anything. check-in: ef9d839311 user: stephan tags: json
15:50
Fixed POST sending for rhino-based ajax impl (was sending Content-Type form-urlencoded). Login over rhino works :). check-in: a36d5c0ed8 user: stephan tags: json
15:48
minor fix for fossil's internal handling of name=xyz parameter. check-in: 9f2535f1e0 user: stephan tags: json
14:11
Some touch-ups in the JS code. Started adding Rhino-based tests for integration/unit-testing CGI/server modes. check-in: 42a07be4c5 user: stephan tags: json
10:51
It seems like blob_constant_time_eq() is unnecessary for sync protocol signatures; removed. check-in: 48bcfbd47b user: dmitry tags: dmitry-security
09:41
Catch zero length early in blob_constant_time_eq(). check-in: e3d022dffa user: dmitry tags: dmitry-security
09:01
Merged in trunk [9bfa186be09f]. Fixed an inexplicable duplicate call to db_find_and_open_repository() which has since disappeared from the trunk. check-in: 8185bddf2e user: stephan tags: json
2011-09-29
21:06
Fix to the previous fix: install function to the correct database. check-in: 3782276da6 user: dmitry tags: dmitry-security
21:04
Fix login groups. check-in: 6f29649ef3 user: dmitry tags: dmitry-security
17:26
Fix comment. check-in: a0fa120b74 user: dmitry tags: dmitry-security
17:21
Protect against timing attacks by using constant-time comparison function to compare passwords and cookies. check-in: 7f110475ec user: dmitry tags: dmitry-security
14:07
When creating a manifest, get isExe and isLink bits from filesystem at once instead of doing two stat(2) calls. check-in: 9bfa186be0 user: dmitry tags: trunk
11:45
Change file_size() to file_wd_size() in file_is_the_same(). check-in: 13a771ce18 user: dmitry tags: trunk