Fossil

All files named "src/json.c"
Login

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

History for src/json.c

2021-01-02
05:26
Extended the is-json-mode check in [e0b51eb2e7] to include the 'http' command when looking for repolist-style paths. ... (file: [e45172c315] check-in: [bc593ea042] user: stephan branch: trunk, size: 76859)
03:06
Updated link to the public JSON API docs. ... (file: [bd4f209eef] check-in: [acda62f5d9] user: stephan branch: trunk, size: 76798)
02:56
Extended [dd490d17bec777c4] to also apply to the 'ui' command to resolve a JSON-mode assertion which happens when running ui --repolist reported at [https://fossil-scm.org/forum/forumpost/2cc2bbd4a2]. ... (file: [daf219c2a6] check-in: [e0b51eb2e7] user: stephan branch: trunk, size: 76833)
2020-12-29
00:27
Added new 'chat' perm to /json/cap response. ... (file: [063cd044d6] check-in: [e06315f976] user: stephan branch: trunk, size: 76774)
2020-07-21
02:47
Corrected [b2ac2183] to work with CGI directory-serving mode. Renamed the two JSON bootstrap routines to be more descriptive and made it a harmless no-op to call json_bootstrap_early() (formerly json_main_bootstrap()) multiple times in order to simplify some code. Several minor code style fixes in related code. ... (file: [eb822cfee3] check-in: [e7f13b82b6] user: stephan branch: trunk, size: 76754)
2020-07-09
12:53
Refactored [23e138e808] a bit to move some new json-only code from main.c to json.c. ... (file: [4682e16c66] check-in: [b2ac218325] user: stephan branch: trunk, size: 76430)
2020-06-13
19:11
Move the JSON error cgi_reply() into fossil_print_error(). ... (file: [b0e5305671] check-in: [6131789870] user: mistachkin branch: jsonTestsPass, size: 75266)
2020-06-11
23:40
Attempt to make JSON subsystem initialization work better. ... (file: [5b518e8a3d] check-in: [920a64286d] user: mistachkin branch: jsonTestsPass, size: 75283)
22:38
Experimental changes to get JSON tests passing. ... (file: [789c5b9994] check-in: [2e4238368e] user: mistachkin branch: jsonTestsPass, size: 75248)
2020-04-05
23:45
Match the COMMAND and WEBPAGE names with _cmd and _page functions; [https://fossil-scm.org/forum/forumpost/045bffda68|forumpost/045bffda68] ... (file: [a3bee93e91] check-in: [06afb7022f] user: ashepilko branch: api-cleanup, size: 74781)
2020-03-12
16:56
An extension of [3941824d] to remove all mention of 'd' capability from the code, not just ifdef or comment it out. Also removes it from the docs and from the default capability set for Developer, dei -> ei. ... (file: [1213bb56a3] check-in: [55a7643938] user: wyoung branch: eradicate-d-cap, size: 74825)
2020-01-29
12:34
Several minor internal cleanups in the /json bits, most notably how g.json.isJsonMode gets initialized (based strictly on the path/command, not guessing based on POST input). ... (file: [ae4868f02c] check-in: [39bef92745] user: stephan branch: trunk, size: 74849)
06:31
Doc typo/misinformation fix. ... (file: [d7e0f3dc2f] check-in: [83d02c01b4] user: stephan branch: trunk, size: 73837)
06:25
json: when logging in locally to a server started with the --localauth flag, the authToken is now ignored entirely. ... (file: [cde4083412] check-in: [6dfc395a48] user: stephan branch: trunk, size: 73837)
2019-03-19
14:09
Replace most calls to db_begin_transaction() with db_begin_write() to avoid having a reader locking during a COMMIT. ... (file: [c72a3f51ee] check-in: [6cc5354821] user: andybradford branch: db-begin-txn-updates, size: 73402)
2018-08-12
03:38
Update wording to match documentation. ... (file: [356dc00fca] check-in: [cbfbfa8c72] user: mistachkin branch: updNewCaps, size: 73408)
2018-08-11
23:47
Update JSON code to account for new capabilities. Also, the 'setup' and 'admin' capabilities should imply 'debug'. ... (file: [95c7247570] check-in: [7ce44fab24] user: mistachkin branch: updNewCaps, size: 73408)
2018-07-15
19:56
Clarify the difference between fossil_fatal() and fossil_panic(). The fossil_panic() interface puts a message on the error log when generating webpages. Otherwise the two routines are identical. Convert some fossil_fatal() calls into fossil_panic() where appropriate. The goal here is to limit messages on the error log to things that require attention from the system administrator, or represent bugs. ... (file: [28a0a82d44] check-in: [3f5ab71744] user: drh branch: trunk, size: 73132)
2018-01-16
16:30
Update the codecheck1.c utility program to find unsafe format strings for recently added varargs functions. Fix unsafe varargs found by this update. This is a continuation of the fix in check-in [3c2ef25d03fb48d5]. ... (file: [20b82a01a7] check-in: [2fac7df467] user: drh branch: trunk, size: 73132)
2017-11-30
17:58
Refactor the symlink processing logic so that most of the file access routines take a new parameter indicating the conditions under which symlinks should and should not be followed. This should fix a few bugs related to symlink processing. Lots of testing required before merging to trunk. ... (file: [31bebf948c] check-in: [e7767de263] user: drh branch: symlink-refactor, size: 73126)
2017-08-30
14:15
Removed dead reference to g.fNoDirSymlinks. ... (file: [d60c46e859] check-in: [949d777d76] user: stephan branch: trunk, size: 73098)
2017-03-15
00:41
Added missing reference to the -json-input flag for the json command. ... (file: [cc8d06a2d2] check-in: [2accaaeead] user: stephan branch: trunk, size: 73124)
2017-02-01
04:40
Rename and repurpose '--no-symlinks' into '--no-dir-symlinks', to prevent traversing into symlinked directories. Make the '--verily' option to 'clean' imply '--no-dir-symlinks'. ... (file: [f5b7fdcda3] check-in: [66406ae942] user: mistachkin branch: noSymlinks, size: 72957)
02:16
Add the --no-symlinks global command line option. ... (file: [8fc2bf0dc1] check-in: [85277aa3b3] user: mistachkin branch: noSymlinks, size: 72954)
2016-08-20
18:16
Fix compilation errors when the JSON feature is enabled. ... (file: [dc2c7f1463] check-in: [e2f4f1f8d5] user: mistachkin branch: omit-db_name, size: 72931)
2016-08-19
00:13
Use the new SQLITE_DBCONFIG_MAINDBNAME feature of SQLite to eliminate the need for the db_name() hack. ... (file: [74634a69c6] check-in: [d858f3da52] user: drh branch: omit-db_name, size: 73000)
2016-02-09
14:12
json: added a few assertions and changed a few chars to ints to avoid potential signedness problems on ARM. ... (file: [6df1d80dec] check-in: [5c0dc2d352] user: stephan branch: trunk, size: 73057)
2015-09-16
09:18
Add some "const" keywords in appropriate places. No change in functionality. Eliminates some compiler warnings. ... (file: [18266f2772] check-in: [a6fd491d3a] user: jan.nijtmans branch: trunk, size: 72737)
2015-04-08
05:06
Check versioned settings (namely, allow-symlinks) during open. ... (file: [4bfa5f9114] check-in: [6a4c3c5ee2] user: andygoth branch: andygoth-versioned-open, size: 72739)
2014-10-20
15:01
Add a custom static analysis program that verifies the arguments to printf-style varargs routines used in Fossil. Adjust the source code to be more robust for printf format errors and to fix a few minor problems found by the static checker. ... (file: [f3969a835c] check-in: [0a7e326fa4] user: drh branch: compile-time-print-checking, size: 72713)
2014-09-11
17:25
char-vs-int fixes in the JSON API: caused underflow (and thus incorrect is-flag-set results) on platforms where char is unsigned (Linux/ARM). ... (file: [9b2f51d1d9] check-in: [57f0bb98c6] user: stephan branch: trunk, size: 72678)
2014-06-12
17:26
merge trunk ... (file: [57a764cb41] check-in: [e751da62cb] user: jan.nijtmans branch: win32-longpath, size: 72701)
2014-03-31
17:31
Fixed json.c for g.url changes which could not have been caught by search/replace b/c they are macro-generated. ... (file: [68917a4b84] check-in: [bcae843a3f] user: stephan branch: trunk, size: 72686)
2014-02-15
03:03
Further improve reporting of the compiler version information. ... (file: [d310431593] check-in: [b065aff4b9] user: mistachkin branch: trunk, size: 72672)
2013-11-29
11:26
When configuring fossil using "--disable-internal-sqlite" (having SQLite 3.8.1 installed), "./fossil version -v" gives: "SQLite 3.8.2 2013-11-27 14:50:51 c75f561f33", which was not the SQLite version compiled with, neither the SQLite version actually running (3.8.1). ... (file: [814026f080] check-in: [d780693181] user: jan.nijtmans branch: trunk, size: 72672)
2013-11-07
13:29
Use fossil_getenv/fossil_fopen in stead of getenv/fopen in a few places, so on Win32 non-ASCII characters in filenames and environment variable values are handled correctly. For shell.c this must be handled by the makefiles, because this file comes from SQLite. ... (file: [bf7c3a1614] check-in: [aab8ce2fcc] user: jan.nijtmans branch: trunk, size: 72662)
2013-08-16
03:25
Merge in all new development from trunk. ... (file: [00ee1a798c] check-in: [535cba9158] user: andybradford branch: ssh-test-http, size: 72633)
2013-08-13
13:37
c/the the/the/ ... (file: [7ef14201ed] check-in: [0b75e2e615] user: jan.nijtmans branch: trunk, size: 72655)
2013-07-16
05:47
Remove old SSH transport code and spawn remote fossil http as remote SSH command instead. Also make it possible to configure SSH command prior to cloning. Change remote fossil command to be configurable (really this should probably be simply a matter of fixing PATH on remote end). ... (file: [c1205a3d30] check-in: [c38ff36ddf] user: amb branch: ssh-transport-changes, size: 72637)
2013-06-21
07:25
Allow i64 type to be used in JSON in more places, mainly for time values and file sizes. ... (file: [dffc6aee41] check-in: [f89a32d782] user: jan.nijtmans branch: trunk, size: 72659)
2013-06-20
13:56
Change return type of db_last_insert_rowid() to size_t. ... (file: [fc71173294] check-in: [e1cb483a9b] user: jan.nijtmans branch: size_t-rcvid, size: 72664)
2013-05-08
20:09
Reworked the timer IDs to be positive values to simplify error checking a bit. ... (file: [c376d899a5] check-in: [799458977e] user: stephan branch: trunk, size: 72659)
19:54
Added fossil_timer_is_active(timerId), removed fossil_has_timer(). ... (file: [32b0f05405] check-in: [590406df3c] user: stephan branch: trunk, size: 72645)
19:45
Added fossil_timer_xxx() family of functions and g.mainTimerId. ... (file: [fd270b1171] check-in: [e28433a692] user: stephan branch: trunk, size: 72547)
2013-04-27
01:28
Added --verbose|-v as alias for --full|-f option to /json/stat, per ML discussion. Removed a stray 's' character, probably a result of a mis-pressed Ctrl-S. ... (file: [8cf587d779] check-in: [e07e1f662e] user: stephan branch: trunk, size: 75900)
2013-04-26
08:28
Rename --detail, --showfiles, --files to -v|--verbose (but keep original as deprecated) ... (file: [4de91387cd] check-in: [34ed0afc8a] user: jan.nijtmans branch: verbose, size: 75977)
2013-03-05
12:25
style: use g.zConfigDbName in stead of g.configDbName, as all other strings. ... (file: [e4b806d850] check-in: [a5dc5332d4] user: jan.nijtmans branch: trunk, size: 75844)
12:17
Add check for win32/cygwin whether the config-db is writable in stead of checking that the $HOME directory is writable. Eliminate g.zHome and g.configOpen, in stead use a single g.configDbName. Then people no longer have to guess whether the config db name is ".fossil" or "_fossil". g.zHome was only used for locating the config db, nothing else. ... (file: [7914e0fbec] check-in: [473e08a6d1] user: jan.nijtmans branch: trunk, size: 75843)
2013-02-23
10:58
Added /json/status command. ... (file: [1bc9c20481] check-in: [d1e4d100ad] user: stephan branch: trunk, size: 75858)
2013-02-21
11:45
more unused variables ... (file: [0ab64b6a30] check-in: [1a2e1ea0fe] user: jan.nijtmans branch: trunk, size: 75501)
2013-01-18
11:06
Changed days-per-year from 365.24 to 365.2425, which is (per Wikipedia) more correct over longer time periods (patch from J. van den Hoff). Removed serverId from /json/stat output, analog to commit [6bb63a7364]. ... (file: [b7fa6b4d13] check-in: [823d3ed6d3] user: stephan branch: trunk, size: 75524)
2012-11-22
10:16
Modify db_open_config() and associated routines to make their internal state more consistent and discoverable. ... (file: [7c2b9fa4d9] check-in: [52a6868700] user: mistachkin branch: dbOpenConfig, size: 75610)
2012-11-04
12:59
Fix typos. ... (file: [b36b961f7d] check-in: [45065c5c28] user: dmitry branch: spelling, size: 75584)
2012-11-02
03:30
Add the new moderation permissions to the list maintained by the JSON code. ... (file: [d13b2234b3] check-in: [1cc7e8ce29] user: mistachkin branch: trunk, size: 75584)
2012-09-24
09:03
modified fix for [c8c0b78c84], which no longer causes "Usage" printouts to use the full fossil path, even though the command line didn't use the full path ... (file: [6ae61780a4] check-in: [dacc694615] user: jan.nijtmans branch: trunk, size: 75521)
2012-09-02
19:39
<pre>Minor additional fixes related to [c8c0b78c84]: - Use _wsystem() in stead of system() on Windows - Use g.argv[0] in stead of fossil_nameofexe() where only printing is involved - Use fossil_nameofexe() where fossil_system() is involved - Move the determination of the full windows path to fossil_nameofexec, so g.argv[0] can always be the unmodified argv[0] - g.argv[0] and fossil_nameofexec() are in utf-8, so we cannot use fprintf directly. Exception: when printing malloc errors.</pre> ... (file: [542f41ace5] check-in: [be06861f3c] user: jan.nijtmans branch: ticket-c8c0b78c84, size: 75566)
2012-08-29
14:12
merge trunk ... (file: [7cec625f58] check-in: [c037808477] user: jan.nijtmans branch: eclipse-project, size: 75590)
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII ... (file: [de26dedcc8] check-in: [9f6abc5968] user: jan.nijtmans branch: msvc-broken, size: 75583)
2012-08-22
13:47
new functions fossil_unicode_to_utf8 and fossil_utf8_to_unicode. Modify file_delete, file_tempname, fossil_getenv and fossil_fopen to use it, so now they can handle all unicode characters not only the ones from the mbcs This should allow all filenames and environment variables to contain unicode characters, without problems on WIN32. If main.c is compiled with -DUNICODE -D_UNICODE, then command line arguments allow unicode characters on win32 as well. Build system not adapted for that yet. ... (file: [240cc43834] check-in: [65c8ca0571] user: jan.nijtmans branch: eclipse-project, size: 75591)
2012-07-13
16:56
help text updates. ... (file: [4d41e2be20] check-in: [91a740e82a] user: stephan branch: trunk, size: 75584)
15:06
Several minor internal cleanups to the json code which i thought i had committed last week :/. ... (file: [7f3a2ef301] check-in: [055dfb1223] user: stephan branch: trunk, size: 75629)
2012-07-05
19:24
Minor interal json refactoring made possible by recent cson changes. ... (file: [d87e42d77e] check-in: [e40e79b7ab] user: stephan branch: trunk, size: 75623)
19:03
Pulled in latest cson amalgamation for the cson_type_id addition and started refactoring some O(N) lookups to O(1) based on that addition. ... (file: [9562b606d7] check-in: [cde55bd7a3] user: stephan branch: trunk, size: 75656)
2012-07-03
21:30
minor cleanups made possible by newer cson APIs. ... (file: [7bdc00d988] check-in: [9be377fef1] user: stephan branch: trunk, size: 75417)
21:07
Replaced a malloc()/free() with fossil_malloc()/free() and removed the corresponding NULL check (fossil_malloc() dies on error). ... (file: [b688e4776e] check-in: [6ad70288d9] user: stephan branch: trunk, size: 75605)
2012-06-29
15:59
Update to the latest SQLite4 that requires converting preprocessor macro prefixes from "SQLITE_" to "SQLITE4_". ... (file: [d86a79aa06] check-in: [0328d68181] user: drh branch: sqlite4, size: 75661)
2012-06-27
12:30
Begin a branch that is modified to use sqlite4 instead of sqlite3 as the storage engine. This check-in compiles (on unix) but does not work. ... (file: [8cfd429bf0] check-in: [6823912746] user: drh branch: sqlite4, size: 75651)
2012-06-24
03:47
Re-added the jsonApiVersion field to /json/version output. Not sure why i had removed it. /json/report/create now fails with an NYI error instead of succeeding but doing nothing. ... (file: [e5de224534] check-in: [bbcc8fe351] user: stephan branch: trunk, size: 75646)
2012-06-20
16:47
comment-after-#ifdef patch from Alexander Orefkov. ... (file: [3326ec2349] check-in: [c5d56e4974] user: stephan branch: trunk, size: 75650)
2012-06-19
13:04
Fix several MSVC compiler warnings, including a couple C99-isms. ... (file: [e481f3747c] check-in: [80bfcee892] user: mistachkin branch: trunk, size: 75650)
2012-06-11
17:33
merge trunk again... (previous merge was not from latest trunk from fossil-scm.org) ... (file: [bdbbf4397e] check-in: [7a57ab6465] user: mgagnon branch: mgagnon_fix, size: 75683)
2012-04-28
12:07
s/History/Hyperlink/ to accommodate API change. ... (file: [47a98bee9f] check-in: [89f37c0458] user: stephan branch: trunk, size: 75641)
2012-03-29
14:54
Add vim modline everywhere ... (file: [0b87738bad] check-in: [a496d8e88d] user: mgagnon branch: mgagnon_fix, size: 75681)
2012-03-25
01:27
fixed a horrible varargs misuse. ... (file: [447e8b733d] check-in: [a596198ced] user: stephan branch: trunk, size: 75655)
00:52
switched from vmprintf() to sqlite3_mprintf() to get the extra percent format modifiers. ... (file: [682eae76fa] check-in: [3acdc5e448] user: stephan branch: trunk, size: 75654)
2012-03-18
03:37
removed jsonApiVersion property for the time being. ... (file: [69168bdec1] check-in: [bf903a4b99] user: stephan branch: trunk, size: 75639)
2012-03-16
19:01
Removed a duplicated function (different name, same code). ... (file: [737e847b64] check-in: [116a098610] user: stephan branch: trunk, size: 75635)
15:21
Added initial /json/dir implementation. ... (file: [fee5bce8b1] check-in: [318a0ac132] user: stephan branch: trunk, size: 75875)
2012-03-09
18:43
Added jsonApiVersion to /json/version output. ... (file: [2a63700331] check-in: [24d830ca8a] user: stephan branch: trunk, size: 75265)
2012-03-05
20:35
Consolidated some duplicated /json code, removed some dead code. Minor doc additions and cleanups. ... (file: [5c31ecb9cb] check-in: [6ca400a315] user: stephan branch: trunk, size: 75213)
2012-03-02
16:44
Added initial /json/finfo support, but the output structure is up for debate. ... (file: [ea3520292f] check-in: [f825f8c85d] user: stephan branch: trunk, size: 74178)
2012-02-23
11:32
Fix warnings in json support code (unused variables, unused label, etc). ... (file: [f2bde118b9] check-in: [86f6e675eb] user: mistachkin branch: jsonWarnings, size: 74086)
2012-02-17
18:23
Added initial /json/config/get support. ... (file: [3c992cba51] check-in: [e5a86795da] user: stephan branch: trunk, size: 74214)
2012-02-16
22:40
Cleaned up the recently consolidated top-most json command dispatching a bit. ... (file: [b3ad9a27c2] check-in: [5daadddfdb] user: stephan branch: trunk, size: 74101)
21:37
Refactored some duplicate json-mode command/path dispatching code into a function. ... (file: [390748a7dc] check-in: [f81e3e7f45] user: stephan branch: trunk, size: 74239)
21:09
Removed some unused code. minor doc touch-up. ... (file: [387d8fe7b2] check-in: [cff9ecad0b] user: stephan branch: trunk, size: 74070)
20:57
minor doc touch-ups and one s/cson_value_new_string/json_new_string/. ... (file: [63f394c84e] check-in: [9cfe61e0bf] user: stephan branch: trunk, size: 74729)
01:03
Always convert the result of getenv() into UTF8. ... (file: [95d28fa874] check-in: [57152086b8] user: drh branch: trunk, size: 74604)
2012-02-12
10:42
(json wiki get) now supports returning the page metadata without the content. Fixed an arg-forwarding bug in json_find_option_cstr() which caused long-form args to be ignored. ... (file: [069bf87712] check-in: [913e0b6628] user: stephan branch: trunk, size: 74597)
2011-11-05
01:28
json doc updates and removal of some dead code. ... (file: [870377c491] check-in: [0c234bdd0a] user: stephan branch: trunk, size: 74519)
00:13
s/json_tags_for_rid()/json_tags_for_checkin_rid()/g, since that's really what it does. ... (file: [7ac2aa1184] check-in: [4ff2e31cef] user: stephan branch: trunk, size: 74546)
2011-11-04
20:37
Added configure option --enable-json to enable json features. They are disabled by default. ... (file: [2ef342f4f6] check-in: [525816e6d7] user: json-demo branch: json, size: 74531)
19:39
merged in trunk [1e3cae806885d] and set up the json command/page to be elided when FOSSIL_DISABLE_JSON is defined at build time. ... (file: [227d9fdc67] check-in: [44bba06ce6] user: json-demo branch: json, size: 74419)
2011-10-20
07:00
Moved the user-related JSON handlers into their own file. ... (file: [4baaf6ae78] check-in: [6e18fc2ecc] user: stephan branch: json, size: 74285)
01:20
Refactored json_stmt_to_array_of_xxx() to actually take a cson_array argument (not generic cson_value arg), now that the cson API allows that simplification. ... (file: [597277f8d3] check-in: [23a35ba1cc] user: stephan branch: json, size: 76772)
2011-10-19
23:56
Enhanced /json/artifact/FILE_UUID a bit. Now only includes full content if explicitly told to, but returns more metadata even for binary files. ... (file: [7ff56b189d] check-in: [2165e77c85] user: stephan branch: json, size: 76992)
21:13
s/fossil_is_json/fossil_has_json/g. Moved fossil_has_json() (nee fossil_is_json()) decl/docs to json_detail.h. ... (file: [4287f32639] check-in: [d2c1ae23a9] user: stephan branch: json, size: 76897)
20:54
Fixed a C99/C++ism. Added json_new_string_f() (printf-style). ... (file: [1432e45503] check-in: [f5cc421dc2] user: stephan branch: json, size: 77424)
20:36
A number of small doc improvements. ... (file: [28c3cca9ad] check-in: [fa17e0980c] user: stephan branch: json, size: 77158)
15:47
fixed json_page_top() and json_cmd_top() to behave as documented when a callback returns non-NULL but does set the error state. ... (file: [b798749e62] check-in: [2f48be58a7] user: stephan branch: json, size: 76597)
2011-10-16
10:04
merged/resolved trunk [ee723ed98ddb0a]. ... (file: [434b327aac] check-in: [a40ac8fdc4] user: stephan branch: json, size: 76487)
09:49
minor doc clarification. ... (file: [4d7164e7d0] check-in: [398b53e059] user: stephan branch: json, size: 76448)
2011-10-09
12:58
factored out an extraneous parameter to json_gc_add(). ... (file: [49ba8592ca] check-in: [7a83a5cbd0] user: stephan branch: json, size: 76424)
11:57
fixed: json_cap_value() now returns NULL (instead of prematurely/fataly querying the db) if g.userUid has not been set (i.e. CLI mode). ... (file: [6c49876591] check-in: [96920e7c04] user: stephan branch: json, size: 76189)
11:45
Added global debugFossilG/--json-debug-g boolean to add the "g" output to any response (including (especially) error responses) to simplify debuggering. Requires a|s privileges. ... (file: [a7744223ff] check-in: [f047bbddb4] user: stephan branch: json, size: 76104)
11:23
Added /json/g, which dumps the "g" object to JSON (debuggering tool). ... (file: [5413c0cd5a] check-in: [65e0c94c8a] user: stephan branch: json, size: 75797)
2011-10-08
14:15
getenv() as the fallback strategy for json_getenv() now only enabled in CLI mode. ... (file: [67e07773eb] check-in: [8c4a23aee4] user: stephan branch: json, size: 72423)
12:57
"Dispatching" json subcommands now produce more useful error messages when no subcommand is specified. ... (file: [319c1e16a2] check-in: [a8af09fc16] user: stephan branch: json, size: 72339)
11:55
fixed a cson mis-use which could cause a crash in some cases due to client-side misachtung of the reference count. ... (file: [bd555464bc] check-in: [d8fd611fab] user: stephan branch: json, size: 70592)
10:18
Added /json/report/run. Fixed an SQL syntax bug in report/list (only affected non-priveleged accounts). ... (file: [49fc458650] check-in: [8907163ea4] user: stephan branch: json, size: 70099)
08:46
Added /json/report/list and /json/query. ... (file: [ecff80fe34] check-in: [20978b27a2] user: stephan branch: json, size: 69150)
2011-10-07
13:51
First draft, no-frills /json/diff added. ... (file: [c7f8f32f2e] check-in: [54e1f1a53d] user: stephan branch: json, size: 67758)
10:59
Pulled in another round of memory optimizations in cson/sqlite3. Added a few minor error reporting cleanups in JSON mode. ... (file: [1aee2abe94] check-in: [09e5fcd795] user: stephan branch: json, size: 67671)
06:54
Minor internal tweaks. Pulled in lastest cson_amalgamation for the new convenience functions. ... (file: [5705e42f2d] check-in: [c75759d8d0] user: stephan branch: json, size: 67228)
03:51
fixed how many path parts are generated for the "command" response property. ... (file: [3735e08b2f] check-in: [3d6cc1df78] user: stephan branch: json, size: 67217)
02:58
Fixed a minor denkfehler in the "bump <1ms runtime to 1ms" logic. Changed g.json.gc to an array (lower memory and better performance for what we use it for). ... (file: [d1cb203eac] check-in: [19276984bd] user: stephan branch: json, size: 67139)
2011-10-06
23:12
Added /json/tag/find. ... (file: [840c01e68a] check-in: [9d27ade314] user: stephan branch: json, size: 67191)
20:10
Added /json/tag/list and infrastructure for pending (add, cancel, find) ops. ... (file: [20396a4775] check-in: [1088cf2107] user: stephan branch: json, size: 66706)
17:12
Added /json/resultCodes. ... (file: [3adcc3ff8f] check-in: [71a1d4483f] user: stephan branch: json, size: 66650)
15:51
minor doc fix before switching PCs for the weekend. ... (file: [c0c746b29d] check-in: [a403544f2a] user: stephan branch: json, size: 65016)
15:47
fixed comparison logic which broken dumbing-down of error codes (caused them to never be dumbed-down). ... (file: [e3e15e1e21] check-in: [f93e059f6c] user: stephan branch: json, size: 65016)
2011-10-05
12:04
experimentally added "command" property to all responses to simplify response handler dispatching in some experimental Java client code. ... (file: [00d07d18aa] check-in: [8f12ac9896] user: stephan branch: json, size: 64974)
06:42
A few internal cosmetic cleanups, added json_get_wiki_page_by_rid(). ... (file: [3b20b14c25] check-in: [afb3c89fe6] user: stephan branch: json, size: 64148)
02:41
Doh... accidentally changed resultCodes from strings to ints during refactoring. ... (file: [3437365701] check-in: [36384da861] user: stephan branch: json, size: 64168)
02:26
Consolidated more of the CLI/HTTP/CLI-with-POST arg handling disparities into the json_find_option() family of functions. ... (file: [72b132c246] check-in: [5b4a3f12dc] user: stephan branch: json, size: 64161)
00:53
lots of minor cleanups in JSON error handling (mostly cosmetic). Added some new FOSSIL-xxxx codes. ... (file: [f62443463c] check-in: [2e41514fb7] user: stephan branch: json, size: 61878)
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. ... (file: [175699fca0] check-in: [af72cc7599] user: stephan branch: json, size: 61207)
23:21
Fixed an incorrect setting of the content type in one error-handling case. ... (file: [794330e1f8] check-in: [35e4e9188b] user: stephan branch: json, size: 61047)
22:58
Added /json/branch/create. Finally found g.zErrMsg, and started using it in conjunction with json error reporting. ... (file: [04c3d285b9] check-in: [8eaf58ee51] user: stephan branch: json, size: 61134)
21:01
moved /json/branch code into its own file. ... (file: [11387240c3] check-in: [1a4c874e43] user: stephan branch: json, size: 60472)
18:18
s/userName/name/, for consistency. ... (file: [d79432d415] check-in: [94689bbf29] user: stephan branch: json, size: 63237)
12:41
json mode now accepts command=string request parameter if path length is 1 (no subcommand was specified). ... (file: [4604ffb1e7] check-in: [225fd3dad3] user: stephan branch: json, size: 62887)
12:31
initial code for reading POST data from a file/stdin in CLI mode. ... (file: [3d64c30769] check-in: [8145cdbf3b] user: stephan branch: json, size: 62537)
11:43
minor cleanups and doc additions to the json/artifact handling. ... (file: [5e76685347] check-in: [6d0667831a] user: stephan branch: json, size: 61629)
10:51
Added missing license header to new files. Updated (c) date to 2011. ... (file: [ca906dc4ee] check-in: [8a665715c2] user: stephan branch: json, size: 61680)
2011-10-01
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. ... (file: [b471f66c7a] check-in: [b1f9257213] user: stephan branch: json, size: 61680)
05:57
Added json_new_int() convenience function. ... (file: [55729d1d6f] check-in: [ccd66b9b3c] user: stephan branch: json, size: 61014)
05:09
Added initial /json/artifact code, but it currently can only report the type of a given artifact. ... (file: [efda1d4926] check-in: [6372d95165] user: stephan branch: json, size: 60927)
02:12
Changed /json/login output payload structure. ... (file: [e6b88b8e21] check-in: [88ddf2cbce] user: stephan branch: json, size: 60778)
2011-09-29
21:57
Removed the json warnings bitset crap. Still not sure i like the warnings mechanism at all. ... (file: [322481d1e2] check-in: [9fe06e2fda] user: stephan branch: json, size: 60839)
17:03
minor jsonp tweaks. Added some test code for it in the demo app, but there is still some jsonp disconnect between the two AJAJ layers, and i may need to consolidate them to work around it. ... (file: [42a4ccbd7e] check-in: [f48b687a9a] user: stephan branch: json, size: 60761)
15:23
Added /json/rebuild. Is likely to fail w/ an AJAX timeout for large repos, which will probably cause the rebuild to roll back on the next open :/. Takes 21sec on my 32-bit netbook to rebuild the fossil repo. ... (file: [66d840ebfa] check-in: [071de8f1bd] user: stephan branch: json, size: 60619)
2011-09-28
21:36
JSON CLI mode now accepts --indent|-I N to set JSON indention level (uses cson_output_opt::indentation semantics). Default for CLI mode is 1 (0 for HTTP mode). ... (file: [8d981b3b24] check-in: [30e4ebaa19] user: stephan branch: json, size: 59976)
2011-09-27
13:22
Added basic timing info to json ops, but "should probably" move the timer start to the app/server init. ... (file: [4786be5dcc] check-in: [b9ef0fe59b] user: stephan branch: json, size: 59120)
02:09
Changed /json/stat to use brief mode by default due to relatively high runtime cost, replaced 'brief' param with 'full'. Added json_getenv_bool(). ... (file: [1d6e584510] check-in: [c1914eaa79] user: stephan branch: json, size: 55091)
01:51
Added "brief" option to /json/stat, mirroring the change in [d01ca14d08]. ... (file: [806fe74f1b] check-in: [17f11a0884] user: stephan branch: json, size: 53971)
01:32
Added /json/user/xyz to ajax demo. /json/user/get/USERNAME now works as an alias for ?name=USERNAME. ... (file: [5bf1a0df9f] check-in: [585be130f3] user: stephan branch: json, size: 53748)
01:18
moved /json/timeline|wiki commands/pages into their own files. ... (file: [046e7e51fd] check-in: [821830d2fb] user: stephan branch: json, size: 53401)
01:01
Started refactoring specific json command groups into their own files (80kb is getting too big to manage in one file). ... (file: [ad2962c25f] check-in: [5d2a516f8a] user: stephan branch: json, size: 75324)
00:34
added /json/user/get. ... (file: [940431eb58] check-in: [0c7be1fe6c] user: stephan branch: json, size: 83288)
00:14
added /json/user/list. ... (file: [7b30658055] check-in: [59ef1667ac] user: stephan branch: json, size: 81619)
2011-09-26
19:30
made /json/timeline/wiki and /json/wiki/timeline aliases. ... (file: [fe80fa47f0] check-in: [0475e63d44] user: stephan branch: json, size: 80170)
2011-09-23
13:10
s/briefText/briefComment/. Fixed a couple memleaks of blob sql. ... (file: [58cb566142] check-in: [ecdbce1651] user: stephan branch: json, size: 80134)
12:46
Added comment to timeline/ticket. Minor additions to AJAX test pages. ... (file: [96771116a2] check-in: [de0b860f77] user: stephan branch: json, size: 80070)
12:29
Implemented /json/timeline/ticket, cleaned up timeline/ci|wiki. ... (file: [28bfcde609] check-in: [42900f3029] user: stephan branch: json, size: 80033)
10:52
Changed fossil_json_f() callback interface. Refactored json command dispatching a bit. Fixed an ordering problem in the json timelines. Pulled in latest cson_amalgamation. ... (file: [1a08256248] check-in: [c24b445012] user: stephan branch: json, size: 77530)
01:00
Corrected /json/wiki/save|create to honor the proper g.perm.WrWiki/NewWiki perm, instead of just WrWiki. ... (file: [bc2a96ff3f] check-in: [d3759cd40f] user: stephan branch: json, size: 78596)
00:39
Added initial JSONP support, but lacks significant testing. ... (file: [042aeaa543] check-in: [e72ae99dc2] user: stephan branch: json, size: 78539)
2011-09-22
23:40
Added --after/--before support to /json/timeline/ci and wiki. ... (file: [358880ee95] check-in: [e01d49b252] user: stephan branch: json, size: 76761)
20:07
Implemented /json/timeline/wiki. Fixed --limit/-n handling of timeline/ci. ... (file: [3a66e73d55] check-in: [12545465e9] user: stephan branch: json, size: 75158)
19:14
Implemented /json/wiki/create. ... (file: [ff9b642006] check-in: [1df648abfe] user: stephan branch: json, size: 71114)
17:56
Implemented /json/wiki/save. ... (file: [d28db754c5] check-in: [2162c86d9e] user: stephan branch: json, size: 69018)
16:27
minor cleanups in the /json/wiki/get and AJAJ code. ... (file: [2cf923eac6] check-in: [a9c8a31df5] user: stephan branch: json, size: 67769)
15:59
Added /json/wiki/get?page=... ... (file: [f8144c210a] check-in: [7dc8e9ac94] user: stephan branch: json, size: 67590)
14:58
Added /json/whoami. ... (file: [00b9334f33] check-in: [7a65dd0e00] user: stephan branch: json, size: 65276)
2011-09-21
21:23
added a FIXME, removed another. Now it's really bed time. ... (file: [8c59807d32] check-in: [8b814778c9] user: stephan branch: json, size: 64111)
20:43
/json/branch/list now requires g.perm.Read, like /brlist does. Time for bed... ... (file: [9670495f78] check-in: [a37c6a87c6] user: stephan branch: json, size: 64237)
20:03
added current branch name to /json/branch/list payload when in an opened checkout. ... (file: [c64ee781b5] check-in: [7592fe934b] user: stephan branch: json, size: 64075)
19:31
added POST.payload to json_getenv() list. Re-organized /json/branch/list CLI/HTTP arg handling to behave sanely in CLI mode. Minor typo fix in main.c. ... (file: [2e2c1555a4] check-in: [4a9b51649d] user: stephan branch: json, size: 63563)
18:55
s/branch_prepare_query/branch_prepare_list_query/g ... (file: [7abe19541d] check-in: [267739dd20] user: stephan branch: json, size: 62646)
18:53
changed how /json/branch/list selects whether to look at open/all/closed branches. ... (file: [874b32164c] check-in: [14423f3284] user: stephan branch: json, size: 62641)
18:20
Refactored prepareBranchStatement() to simplify its usage, get rid of ambiguous arg handling, and allow the caller to specify the priority of the all-vs-closed-vs-opened decision. Made it non-static and renamed to branch_prepare_statement() for re-use in /json/branch/list. ... (file: [c051a0df07] check-in: [5a81a5ead6] user: stephan branch: json, size: 62297)
18:10
Minor timeline output cleanups. Added /json/branch/list. ... (file: [e612566704] check-in: [f266ebdd3f] user: stephan branch: json, size: 62144)
17:38
More work on the warnings infrastructure. json_warn() now (experimentally) disallows (elides) duplicate warning codes to simplify downstream loops. Still undecided on that behaviour, though. ... (file: [5c22173e71] check-in: [576425e862] user: stephan branch: json, size: 60725)
16:31
started adding infrastructure to report non-fatal warnings. ... (file: [b36342e05d] check-in: [ad50fe9584] user: stephan branch: json, size: 57240)
15:22
timeline json refactoring, fixed ordering, split tags into an Array. ... (file: [6a8d3c044f] check-in: [d6cbe37b6b] user: stephan branch: json, size: 56000)
14:42
refactored the prototype timeline code, split off completely from www version (different requirements). ... (file: [ab6f77c67c] check-in: [1ecf337404] user: stephan branch: json, size: 53498)
2011-09-20
22:55
added a couple FIXME notes before bed. ... (file: [75f9f837e9] check-in: [e785784538] user: stephan branch: json, size: 52430)
22:42
Started adding /json/timeline support, but this is gonna be a doozie. Breaking it down into separate calls for ci/wiki/ticket, e.g. /json/timeline/ci because the structures will be different for each. ... (file: [39cd7b3938] check-in: [eff3f7d929] user: stephan branch: json, size: 52090)
16:45
more minor internal cleanups. s/g.isCGI/g.isHTTP/ to avoid confusion later on. ... (file: [d85d46cb13] check-in: [9adc95c476] user: stephan branch: json, size: 48275)
16:27
minor internal cleanups and doc additions. ... (file: [63767da588] check-in: [2f3e438507] user: stephan branch: json, size: 47958)
16:00
CLI mode now works properly when called using an abbreviated form of "json", e.g. fossil js wiki list. Fixed an incorrect error code in /json/wiki. ... (file: [ca67e48bbd] check-in: [76d0fa2bb0] user: stephan branch: json, size: 47145)
15:48
Refactored page/command callback to take on argument to simplify certain dispatching ops. json_getenv() now falls back to getenv() if neither the POST data nor cgi_parameter() contains the requested value, but this is basically a workaround for my current inability to add --opt support in CLI mode (due to how HTTP/CLI command handling is consolidated). ... (file: [1402d30e4d] check-in: [206908faee] user: stephan branch: json, size: 47191)
2011-09-19
19:03
Moved a db_finalize() which would not have been called in a couple of error cases. ... (file: [70458fcb58] check-in: [afc1cec6a3] user: stephan branch: json, size: 46028)
18:49
fixed a double-free() which could happen in one error case. ... (file: [869a0be59e] check-in: [65e946c714] user: stephan branch: json, size: 46028)
18:48
Implemented /json/wiki/list (first draft, may change). Pulled in latest cson_sqlite3 additions to simplify the impl. ... (file: [0ad35d3f88] check-in: [5cc88946a7] user: stephan branch: json, size: 46058)
17:11
minor cleanups in prep for the "larger" JSON APIs. ... (file: [5362d6cf36] check-in: [87e20659c6] user: stephan branch: json, size: 43865)
2011-09-18
19:16
terribly minor internal cleanups. ... (file: [5b8285450b] check-in: [507a458277] user: stephan branch: json, size: 40505)
19:11
One compile fix and MSVC build fix, from Jeff Slutter. ... (file: [f988acf74d] check-in: [5f3a98ae83] user: stephan branch: json, size: 40383)
10:40
Removed some no-longer valid comments after confirming that JSON mode works without cookies. Dumbed-down the various login errors by default (again). ... (file: [4bc9976daf] check-in: [52229655df] user: stephan branch: json, size: 40383)
10:25
Added userName to /json/stat output for the nobody user (it was previously not set in that case). Renamed captcha to password in /json/anonymousPassword. Added NYI (not yet implemented) placeholders for several planned request types. ... (file: [2de4ee85db] check-in: [13cc3b823f] user: stephan branch: json, size: 40659)
08:11
Implemented anonymous user login over JSON. Requires 2 requests (captcha-fetch and then login). ... (file: [a079d2cd22] check-in: [cebf9919f8] user: stephan branch: json, size: 40167)
05:45
More cleanups to the cson_cgi removal refactoring. Added common "indent" parameter to control indentation of JSON (uses cson_output_opt.indentation semantics). ... (file: [2645a736c9] check-in: [b3653265d1] user: stephan branch: json, size: 37993)
04:31
Factored out cson_cgi bits - now using fossil's CGI bits. Removed cson_cgi from cson_amalgamation (cuts its size considerably). Seems to still work, and this removes some discrepancies in how CGI/server modes are handled. ... (file: [1809644eda] check-in: [4cf9681440] user: stephan branch: json, size: 35747)
2011-09-17
23:14
Doc changes only ... (file: [ad920afefd] check-in: [5a9e567966] user: stephan branch: json, size: 34786)
20:25
added a missing assert() (Thanks, Joe M.) ... (file: [770fcbaffc] check-in: [a67c6744e5] user: stephan branch: json, size: 34224)
16:01
More cleaning up of error lower-level handling to output JSON instead of HTML in a few more cases. ... (file: [9008eb28ea] check-in: [9b842564f7] user: stephan branch: json, size: 34149)
14:24
logout now fails if the auth token is not available to it (as a sanity check and potentially stop someone from logging out someone else). ... (file: [83cd08872e] check-in: [affdf56c3f] user: stephan branch: json, size: 35599)
01:25
dropped back to a simpler timestamp generation mechanism. Thanks to Ge Weijers for the input. ... (file: [69a355ed78] check-in: [147f4bfb62] user: stephan branch: json, size: 34522)
2011-09-16
23:29
Added some code for dumbing-down only the different login errors (missing name, missing pw, or no match found). Defaults to dumbed-down mode. ... (file: [94b6ed83b3] check-in: [388c9888af] user: stephan branch: json, size: 34261)
23:06
worked around a weird cgi_parameter() bug. We are now not processing the name/password params with the precedence i would like, but it works now in server/cgi modes with GET and POST. ... (file: [59c9d85bdb] check-in: [b0885e864c] user: stephan branch: json, size: 33772)
21:39
restructured /json/cap output. ... (file: [7509b0f69f] check-in: [7e3902d14f] user: stephan branch: json, size: 32200)
19:27
implemented /json/logout. ... (file: [3ca1ad93b5] check-in: [e94605b54f] user: stephan branch: json, size: 31584)
18:57
Merged trunk [693ab93b7d] to quiet down -Wall. Removed a trailing comma from an enum (-Wall mode). ... (file: [b3945c26b6] check-in: [98cdd410df] user: stephan branch: json, size: 30879)
18:55
style conformance touch-ups. ... (file: [8e12157d05] check-in: [45cd04f8c1] user: stephan branch: json, size: 30880)
18:39
Refactored the special-case CLI-mode arg/path handling in the CGI/server-mode mechanism. Fixed: server-mode response timestamp was always the time the server process started. ... (file: [f1a14f471b] check-in: [0bb823032f] user: stephan branch: json, size: 30828)
18:29
more cleanups in the json arg/path handling. ... (file: [e1f32c57e7] check-in: [35b9edba83] user: stephan branch: json, size: 30839)
17:53
minor cleanups to the json "command path" handling. ... (file: [d2b7eca5b5] check-in: [2dcc2397b5] user: stephan branch: json, size: 29699)
17:26
Consolidated server/cgi/cli path/arg handling (will break when add --options to CLI mode). ... (file: [ed5bd1686b] check-in: [c5fbcced80] user: stephan branch: json, size: 28885)
16:38
fixed an inconsistency in the CLI/CGI args/path handling. Non-CGI server mode is still broken b/c we do not yet have the PATH_INFO (or equivalent) data. ... (file: [3dffb58619] check-in: [73591cc746] user: stephan branch: json, size: 27283)
2011-09-15
12:03
initial mass-change merge of main repo with my fork. ... (file: [7962436a47] check-in: [5b44a419cd] user: stephan branch: json, size: 26012)