Fossil

File History
Login

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

History of src/zip.c

2018-06-21
16:40
Strengthen the codecheck1.c utility program to help find cases where query parameters are used in unsafe ways. No unsafe usage of query parameters was detected in the current code. file: [135111d3] check-in: [bb9233a6] user: drh branch: trunk, size: 29271
2018-04-06
12:01
Enhance the /tarball, /zip, and /sqlar pages so that the checkin name to be downloaded can be expressed as part of the URI, and without the need for query parameters. file: [39b893f0] check-in: [3e94c7ed] user: drh branch: trunk, size: 29271
2018-02-25
19:09
Add ETags cache control to the /tarball, /zip, and /sqlar pages. file: [fce28035] check-in: [f2492f3b] user: drh branch: etags-cache-control, size: 28850
2017-12-08
03:24
Fix the SQL archive generator so that for a check-in containing no files it generates an empty SQL archive instead of an empty file. file: [fe405d65] check-in: [31b9822d] user: drh branch: trunk, size: 28819
00:07
Fix the "fossil sqlar" command so that it works for the empty initial check-in. file: [7ad33239] check-in: [3e2b5c46] user: drh branch: trunk, size: 28718
2017-12-07
11:33
Spelling typos from Debian file: [0273ff62] check-in: [4d1ac686] user: drh branch: trunk, size: 28692
2017-12-06
01:44
Enable -Wall on default builds. Fix harmless compiler warnings. file: [b297bd83] check-in: [3f2cde2c] user: drh branch: trunk, size: 28692
2017-12-04
21:49
Make the default page size on SQL archives 512 bytes. file: [367ef7e4] check-in: [f5c81a6c] user: drh branch: trunk, size: 28675
21:29
Add the /sqlar webpage. Link to this page from the /info page. file: [43a4e0a4] check-in: [768e1921] user: drh branch: trunk, size: 28643
20:39
Add the "fossil sqlar" command. Like "fossil zip", except generates sqlar archives. file: [d1c3eb2d] check-in: [7eb5b0a2] user: dan branch: trunk, size: 27985
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: [f3437305] check-in: [e7767de2] user: drh branch: symlink-refactor, size: 18512
2017-09-29
00:53
Add support for the "l" flag to the "manifest" setting to enable creation of a file "manifest.symlinks" which lists the names of all symlinks file: [2c6d83f7] check-in: [8d6bdd1e] user: andygoth branch: enhanced-symlink, size: 19026
2017-08-05
04:17
Enable processing of versioned manifest setting when creating zips and tarballs outside of an open checkout directory file: [dca32599] check-in: [da23bec7] user: andygoth branch: trunk, size: 18418
03:45
Simplify manifest generation logic in zip page file: [89bf0064] check-in: [b9de6042] user: andygoth branch: trunk, size: 18369
2017-06-09
13:09
Update the /tarball and /zip pages to return status code 404 if given an unknown checkin to download. file: [13040fcd] check-in: [a10fc448] user: drh branch: trunk, size: 18522
2017-03-15
18:34
On the /tarball and /zip pages, use r= as the query parameter to select which check-in to download. The uuid= query parameter is still accepted as an alias for backwards compatibility. file: [12c01066] check-in: [ece33ee1] user: drh branch: trunk, size: 18481
2017-02-28
19:47
Fix the tarball and ZIP archive generators so that the use the display hash to populate the manifest.uuid file. file: [34f51a1a] check-in: [9a8986b7] user: drh branch: fossil-2.0, size: 18122
2016-10-04
19:06
Fix harmless compiler warnings. file: [7ad4b3ce] check-in: [3f06618c] user: mistachkin branch: trunk, size: 18188
2016-09-23
02:27
Merge updates from trunk. file: [419b5bb1] check-in: [09343661] user: mistachkin branch: jan-manifest-tags, size: 18184
2016-09-15
04:12
Even more consistency. file: [d463b5a9] check-in: [e5cbf41c] user: mistachkin branch: tarAndZip, size: 16944
04:01
Make it easier to debug the ZIP web page. Enhance consistency between the Tarball and ZIP web pages. file: [63ed54d3] check-in: [b9458762] user: mistachkin branch: tarAndZip, size: 16779
2016-09-08
16:42
Fix typos in the "zip" command help text. file: [1d6ed8ea] check-in: [76242c28] user: drh branch: trunk, size: 16455
2016-08-10
09:06
Remove unnecessary spacing file: [4ff5fff5] check-in: [c3b5f1d2] user: jan.nijtmans branch: trunk, size: 16454
2016-08-03
01:18
Merge with trunk; resolved tar and zip generation to handle include/exclude globs. file: [d5f21de4] check-in: [de9e7651] user: jan branch: jan-manifest-tags, size: 17695
2016-06-10
12:46
Add the --include and --exclude options to the tarball and zip commands and the in= and ex= query parameters to the /tarball and /zip webpages. file: [47fb4c4c] check-in: [ef449a11] user: drh branch: trunk, size: 16455
2016-04-01
13:37
Fix typos in comments. No changes to code. file: [ed82de5e] check-in: [b6b50b12] user: mistachkin branch: trunk, size: 13554
2016-03-12
22:02
Remove support for miniz because the upstream project appears to be unmaintained. UPDATE: The miniz project is still being maintained and this branch is a dead-end. file: [7d6476c3] check-in: [b9f31fe1] user: mistachkin branch: removeMiniz, size: 13451
2016-02-04
15:22
Merge from trunk. file: [54e324fb] check-in: [ea7f3297] user: jan branch: jan-manifest-tags, size: 14251
2016-01-07
18:22
When generating ZIP archives, files with zero bytes are 'Stored', not 'Deflated'. file: [8567f81e] check-in: [ecedaf93] user: mistachkin branch: trunk, size: 13553
10:02
Merge trunk. file: [f2e89be4] check-in: [99f7662b] user: jan branch: jan-manifest-tags, size: 14201
2016-01-06
19:44
Do not set the directory permission bit on empty files when creating a ZIP archive. file: [e6d05f48] check-in: [18607775] user: mistachkin branch: pending-review, size: 13503
2016-01-04
00:28
Add manifest.tags to generated zips, and decouple manifest and manifest.uuid. file: [9fe1c1b1] check-in: [aed6fe53] user: jan branch: jan-manifest-tags, size: 14119
2015-11-28
19:59
Include the filename in the form action when redirected from login required to avoid needing to use Content-Disposition header to hint the client what the filename is. file: [211de642] check-in: [5f32bf71] user: andybradford branch: pending-review, size: 13421
2015-04-16
08:53
Remove unnecessary variable determination in src/descendants.c, and some unnecessary end-of-line spacing. file: [49c6b132] check-in: [10f5fc69] user: jan.nijtmans branch: trunk, size: 13407
2015-02-14
14:55
Added the referred_from_login() function and use it to enhance the /zip and /tarball pages so that they show a download button to click if the referrer page was /login. file: [4493de5c] check-in: [bcebe55e] user: drh branch: login-enhancements, size: 13409
12:24
When the user is "nobody", make the g.anon permission vector for "anonymous" available in addition to g.perm. Hyperlinks to pages that would be available to anonymous are shown rather than suppressed. When permission is denied and control jumps to login_needed() a new flag shows whether or not logging in as "anonymous" would help. Work in progress. file: [47fabdf7] check-in: [2f50d427] user: drh branch: login-enhancements, size: 13069
2014-09-23
16:02
When generating the "manifest" file in a checkout because "fossil setting manifest" is turned on, add an extra line of text to the end of the file to prevent the file from being interpreted as a valid control artifact in case the complete source tree is imported into another unrelated Fossil project. file: [957e6e17] check-in: [1dd4be80] user: drh branch: trunk, size: 13059
2014-08-23
06:08
Add miniz as a compile-time feature, leaving zlib as the default compression library. All makefiles should build. The DMC and PellesCGMake makefiles are not yet supported with miniz. Also, when using miniz, OpenSSL support for zlib is disabled in the MinGW makefile. file: [1b220e96] check-in: [c693a336] user: mistachkin branch: optionalMiniz, size: 13025
2014-08-19
16:52
"the zip file patch" from Baruch. file: [bc014640] check-in: [26ecec6c] user: stephan branch: miniz, size: 12924
2014-08-18
17:13
Replaced zlib usage with local copy of miniz. Seems to work. file: [c4810f01] check-in: [579ae389] user: stephan branch: miniz, size: 12923
2014-07-31
21:13
/zip now ignores the .zip extension, analog to how /tar does. Minor doc improvements in /zip and /tar from the ML. file: [a48a2c44] check-in: [e0199bfc] user: stephan branch: trunk, size: 12923
2014-07-30
15:40
Call verify_all_options() on most of fossil CLI commands.    - Skip all the test-* commands for now (may be unnecessary)    - Skip sha1sum, md5sum and artifact because they can take "-" as argument and verify_all_options() would call fatal. Need to handle those differently...    - Command with subcommands that have their options are remaining: branch, bisect, cache, configuration, json, sql, stash, tag, ticket, user, wiki. (not sure how to handle those yet..) file: [33d1c281] check-in: [a426154b] user: mgagnon branch: verify-all-options, size: 12508
2014-04-25
21:11
Add a cache that will save /zip and /tarball objects and reissue them from cache when requested a second time. The "fossil cache" command is used to control the cache. Turned off by default and must be enabled using "fossil cache init". file: [febf7fff] check-in: [450b62ff] user: drh branch: trunk, size: 12439
2014-03-24
16:30
Added some docs for the name/uuid params for /zip. file: [fee9f950] check-in: [4adcd4f4] user: stephan branch: trunk, size: 12228
2014-03-09
00:15
Add the ability to restrict CPU-intensive web pages when the server load average gets too high. This feature is turned off by default. file: [f48cbf87] check-in: [5e26a1b9] user: drh branch: trunk, size: 12018
2014-02-14
15:20
changed a couple free()s to fossil_free()s. file: [b67cd6f0] check-in: [8206ac9b] user: stephan branch: trunk, size: 12000
2014-01-27
09:05
Remove unnecessary end-of-line spaces. (My editor does that automatically, but I don't want it to happen together with other functional changes in a single commit). No change in code. file: [243d1a00] check-in: [52b35c8b] user: jan.nijtmans branch: trunk, size: 11965
2013-10-11
08:36
Make sure that EVERY source file includes "config.h" before any other system includes. This is the first step in making fossil compile for Win64 using MinGW. file: [4cf2d719] check-in: [c30cd93b] user: jan.nijtmans branch: trunk, size: 11975
2013-10-04
09:30
Better error-message in case of "manifest file is malformed" file: [e8d79af1] check-in: [1eb438d6] user: jan.nijtmans branch: pending-review, size: 11975
2012-12-03
22:03
Set bit 11 in the "general purpose bit flag" to 1. This indicates (according to the pkware documentation) that all filenames are in utf-8, in stead of IBM-437. This should fix ticket [838bde7990d8e190957cbfe7f15c77322dc54e57] file: [05668eb0] check-in: [ceb11b07] user: jan.nijtmans branch: utf8-in-zip, size: 11972
2012-08-29
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII file: [270a1c0b] check-in: [9f6abc59] user: jan.nijtmans branch: msvc-broken, size: 11961
2012-08-08
13:22
When using /zip or /tarball without a UUID, use "trunk" instead of "tip" as the default. Ticket [300fc543b24250e256] file: [a8c940f1] check-in: [eb0933ca] user: drh branch: trunk, size: 11962
12:41
If no uuid= query parameter is used for the /tarball or /zip URIs, then use the latest checkin (aka "tip"). Ticket [300fc543b24250e256867]. file: [0685c584] check-in: [8f002216] user: drh branch: trunk, size: 11960
2012-03-29
14:54
Add vim modline everywhere file: [62f1b9f5] check-in: [a496d8e8] user: mgagnon branch: mgagnon_fix, size: 11999
2012-02-01
12:09
Doc change only: documented -R/--repository for zip/tar commands. file: [2e2b1b1d] check-in: [a84aadad] user: stephan branch: trunk, size: 11957
2011-11-03
17:31
Break up the command-line commands into commonly-use and auxiliary commands and only show the commonly-used ones with "fossil help". Add a new command "fossil commands" to show auxiliary and test commands. file: [d88fe881] check-in: [841772c8] user: drh branch: trunk, size: 11934
2011-09-14
17:45
Refactored g.okXXX perms flags to g.perm.XXX. file: [30234883] check-in: [34b4dec0] user: stephan branch: stephan-hack, size: 11933
2011-09-08
11:59
Introduce new file_wd_* functions that use stat() or lstat() depending on 'allow-symlinks' setting, and use them when dealing with files inside the working directory. Make file_* functions always use stat() as before merging symlink support.    Fix renaming of symlinks when merging (via new function symlink_copy()).    Rename create_symlink() to symlink_create(). file: [a6b41569] check-in: [8a0c5469] user: dmitry branch: symlinks, size: 11930
2011-08-25
11:42
Introduce constants for internal permissions (executable/symlink). file: [2a0fed7a] check-in: [f6daee3e] user: dmitry branch: symlinks, size: 11927
2011-08-24
19:12
Support symlinks in ZIP files. file: [ee4abcd3] check-in: [16da26c5] user: dmitry branch: symlinks, size: 11926
2011-08-23
17:44
Fill islink field in vfile table when adding files. Support symlinks in export. Make manifest_file_perm() return 2 for symlinks. Add file_perm() function, and use it instead of file_isexe() when we need both isexe and islink properties. file: [8457a7a6] check-in: [4619361d] user: dmitry branch: symlinks, size: 11830
2011-06-02
19:38
Merge versionable settings and empty-dirs setting from versionable-settings branch file: [829a52ae] check-in: [30ebed19] user: ben branch: ben-testing, size: 11814
2011-06-01
22:32
In contexts where only a check-out makes since, only resolve tags or branch names into check-outs, not events or other artifacts. Ticket [5f611295e3c2a8]. file: [4ea71245] check-in: [2a013f02] user: drh branch: trunk, size: 11794
2011-05-27
12:03
Do not use strcmp() for comparison since the sort order can vary by locale. Use fossil_strcmp() instead. Ticket [3f0216560679fd41]. file: [deda6289] check-in: [32ad9a15] user: drh branch: trunk, size: 11772
2011-05-21
16:18
Slightly hacky way of putting versioned properties in .fossil-settings dir. Version ignore-glob, binary-glob, crnl-glob and manifest. Glob splitting allows line breaks as well as spaces and commas. file: [a1eb8025] check-in: [56b75c76] user: ben branch: bens-expr, size: 11785
2011-02-27
23:31
Change the ZIP file generator so that it sets the execute bit approprately. Ticket [baf9b6b11e08c1d]. file: [17969edd] check-in: [b57bc473] user: drh branch: trunk, size: 11765
2010-11-26
18:37
Report an error if the repository schema version does not match what the fossil executable expects. file: [dcade4c3] check-in: [c0c3d923] user: drh branch: trunk, size: 11675
2010-10-26
19:01
merge from trunk file: [963f13a9] check-in: [4260bc6a] user: wolfgang branch: StvPrivateHook2 , size: 11807
2010-10-19
17:54
Two new settings: "manifest" and "repo-cksum". The first enables the output of the manifest and manifest.uuid files on each checkout. This is now off by default. The second enables repository checksums. It defaults on. file: [74a36d7a] check-in: [2f3b9bd3] user: drh branch: experimental, size: 11672
2010-10-17
17:25
Add the ability to parse and use manifests with the B-card. Add documentation for the B-card. file: [b1266a3e] check-in: [ec56d8ff] user: drh branch: experimental, size: 11601
2010-10-16
17:33
merge from trunk file: [4d131aa6] check-in: [586b0eb1] user: wolfgang branch: wolfgangHelpCmd, size: 11674
2010-10-15
20:37
Refactor the control-artifact parser. file: [754971e0] check-in: [da9fcdc9] user: drh branch: experimental, size: 11631
17:13
Replace all malloc() calls with fossil_malloc(). The fossil_malloc() routine panics rather than return a NULL pointer. file: [28b0a503] check-in: [8f41b2fa] user: drh branch: trunk, size: 11539
2010-10-09
15:34
link the command line help to the gui pages, where appropriate file: [5813a445] check-in: [a5cd7927] user: wolfgang branch: wolfgangHelpCmd, size: 11667
2010-10-08
15:05
fine tuning the layout of the command line help strings file: [d5649f8e] check-in: [c6d18790] user: wolfgang branch: wolfgangHelpCmd, size: 11532
2010-09-27
18:12
added setting to change name of the manifest files in the checkout Ticket [22a59e9a3455d8ecb] file: [0570f8cf] check-in: [9978d2ab] user: wolfgang branch: wolfgangFormat2CSS_2, size: 11545
2010-05-16
19:08
Change from GPL to the Simplified BSD License. file: [0db3b1e1] check-in: [c06edd23] user: drh branch: clear-title, size: 11532
2010-03-11
03:29
Add a "zip" command for generating a ZIP archive of a check-in from the command-line. file: [3494ff97] check-in: [2582ecf2] user: drh branch: trunk, size: 11808
2010-01-20
21:40
Require only ZIP permission (not ZIP permission plus check-out and history permission as formerely) in order to download a ZIP archive. Ticket [164e519962]. file: [f5a6e88d] check-in: [30f23e3f] user: drh branch: trunk, size: 11061
2009-10-18
18:30
Fix the ZIP archive generator so that it works correctly with the OS X Archive Tool. Ticket [923a912309]. file: [43608365] check-in: [d78835d2] user: drh branch: trunk, size: 11092
2009-08-15
13:21
Fix a memory allocation bug in the ZIP archive generator. Ticket [8d6efe4f927] file: [8c1776ca] check-in: [5b918874] user: drh branch: trunk, size: 11449
02:17
Add an "extended timestamp" field to generated ZIP archives. The extended timestamp is in UTC so it does not mangle the time when the server and client are in different timezones. Ticket [28044ab5a42b75] file: [dd5cb8b3] check-in: [90048e0b] user: drh branch: trunk, size: 11448
2009-06-20
23:05
Change the disk number start from 1 to 0 in generated ZIP archives. Ticket [04cba6a00145ab597dabc48ad5ee688496a57650] file: [2b9f0b11] check-in: [deb6f2af] user: drh branch: trunk, size: 9633
2008-11-27
13:25
Fix two problems in the ZIP downloader, as reported by ticket [e28adcd72503a]. file: [f641ace2] check-in: [39bbc601] user: drh branch: trunk, size: 9633
2008-09-19
11:11
fixed an 'integer overflow' warning from the Sun compiler. Thank to Kevin for the tip. file: [df3f3d2e] check-in: [7ae01ee4] user: stephan branch: trunk, size: 9643
2008-08-17
11:37
Change CGI parameter name rid to uuid for the /zip URL. file: [c82f467b] check-in: [81a96aad] user: cle branch: trunk, size: 9631
2008-08-13
11:57
Allow an alternative URL syntax for downloading artifacts via the /zip page. The original way is: http://localhost:8080/zip/fa6e9930177e84ce089b30ad768c454a012364f7.zip which will store the artifact in the file a6e9930177e84ce089b30ad768c454a012364f7.zip. Alternatively it is now possible to download the artifact in e.g. the file fossil.zip via the URL: http://localhost:8080/zip/fossil.zip?rid=fa6e9930177e84ce089b30ad768c454a012364f7 file: [7a8370c8] check-in: [417dd898] user: hintze branch: trunk, size: 9630
2008-08-12
03:27
New Zip permission. This permission allow someone to download a zipped artifact via the wiki's /zip URL. It can given the user nobody to allow automatic package builder to download the sources they know from fossil-scm.org or other servers without any intervening login necessary.    As the /zip page do not expose anything, a spider should have a hard time to crawl thru the project using this URL. So IMO it does not open a break-in hole for spiders. file: [3fb9ffbe] check-in: [fa6e9930] user: cle branch: trunk, size: 9519
2008-02-12
00:31
fixed a string memleak in baseline_zip_page() file: [8367a414] check-in: [1ce0ac53] user: stephan branch: trunk, size: 9505
2008-02-08
22:36
Truncate the name of the toplevel directory added to ZIP archives to be the first 10 characters of the UUID. file: [0e35e8f1] check-in: [73a9b3d5] user: drh branch: trunk, size: 9488
22:31
Change zip archiver to make use of blob.c mechanisms for adding prefixes to file names. Remove C constructs that are not commonly supported. file: [d33c17b3] check-in: [4bbb00a8] user: drh branch: trunk, size: 9428
22:02
minor buffer length fix for the previous change file: [cbdc2c70] check-in: [091499ec] user: stephan branch: trunk, size: 9738
21:33
zip.c: Refactored zip_of_baseline() to accept an (optional) "synthetic" directory name. All zipped files are added to that subdir. The default name is currently the UUID of the zipped baseline. file: [59b74ad1] check-in: [974fd923] user: stephan branch: trunk, size: 9717
2007-10-12
22:56
The g.zExtra parameter is now always available as P("name"). This means the /wiki/xyz and /wiki?name=xyz are equivalent URLs. file: [359cf5b9] check-in: [677aa71b] user: drh branch: trunk, size: 8615
2007-08-25
19:31
Generate the "manifest.uuid" file containing the SHA1 hash of the "manifest" file whenever the manifest is generated. Makefiles can used the "manifest.uuid" to insert the version number into the executable. file: [a6ead783] check-in: [95e17f4e] user: drh branch: trunk, size: 8614
2007-08-01
13:32
From the vinfo webpage, provide a hyperlink to download a ZIP archive the version. file: [a664fdc0] check-in: [6dab6149] user: drh branch: trunk, size: 8458
2007-07-31
20:20
Update the ZIP archiver to include date information. Provide a function that constructs a ZIP archive from manifest. file: [8d50d34c] check-in: [dead090c] user: drh branch: trunk, size: 7790
19:18
Add a ZIP archive generator. file: [967d1ecc] check-in: [9b780d22] user: drh branch: trunk, size: 5714 Added