Commit Graph

3961 Commits

Author SHA1 Message Date
Dennis Heimbigner
bc9e41ae2b 1. Fix bug in ocrc.c#combinecredentials where a null user+pwd
generates garbage. This in turn interferes with using .netrc
because the garbage user+pwd can will override the
.netrc. Note that this may work ok sometimes
if the garbage happens to start with a nul character.

2. It turns out that the user:pwd combination needs to support
character escaping. One reason is the user may contain an '@' character.
The other is that modern password rules make it not unlikely that
the password will contain characters that interfere with url parsing.
So, the rule I have implemented is that all occurrences of the user:pwd
format must escape any dodgy characters. The escape format is URL escaping
of the form %XX. This applies both to user:pwd
embedded in a URL as well as the use of HTTP.CREDENTIALS.USERPASSWORD
in a .dodsrc/.daprc file. The user and password in .netrc must not
be escaped. This is now documented in docs/auth.md

The fix for #2 actually obviated #1. Now, internally, the user and pwd
are stored separately and not in the user:pwd format. They are combined
(and escaped) only when needed.
2017-08-29 14:11:15 -06:00
Dennis Heimbigner
e226cc731e Add note about .daprc vs .dodsrc 2017-08-28 15:50:33 -06:00
Dennis Heimbigner
442f4d9bc9 Fix bug in ocrc.c#combinecredentials
where a null user+pwd generates
garbage. This in turn interferes
with using .netrc because the garbage
user+pwd can (sometimes) override
the .netrc.
Not entirely sure what is going on
because it works as is under e.g. cygwin.
In any case it needs fixing.
2017-08-25 14:42:22 -06:00
Ward Fisher
ceb3b4bc1c Merge branch 'master' of https://github.com/edhartnett/netcdf-c into v4.5.0-release-branch 2017-08-21 15:16:25 -06:00
Ward Fisher
751dde9066 Merge branch 'wkliao-ghpull464' into v4.5.0-release-branch 2017-08-21 10:42:43 -06:00
Ward Fisher
55397c345c Merge remote-tracking branch 'origin/authdoc.dmh' into v4.5.0-release-branch 2017-08-21 10:02:43 -06:00
Ward Fisher
784ed7449c Merge branch 'erange_fill_fix' of https://github.com/wkliao/netcdf-c into wkliao-ghpull464 2017-08-21 09:42:13 -06:00
Dennis Heimbigner
37834917e9 Fix up documentation to replace old auth documentation
with a revised auth.md document.
2017-08-20 18:27:48 -06:00
Dennis Heimbigner
b0cf032ddd Merge branch 'master' into authtesting.dmh 2017-08-20 15:01:19 -06:00
Wei-keng Liao
8b6d131cbe Because ncx.c and putget.c are to be released with the package in case users do not have m4, the generation of the two C files cannot depend on the configure option of --enable-erange-fill. This commit fixes this problem by replacing m4 conditional define with C conditional preprocess. 2017-08-20 14:32:57 -05:00
edhartnett
6ef8dc32fe fixed some refs 2017-08-20 04:40:27 -06:00
Wei-keng Liao
2a68d58433 avoid calling NC3_inq_var_fill when ERANGE_FILL is enabled 2017-08-20 02:04:29 -05:00
Ward Fisher
028e1b1831 Merge branch 'static-analysis' into v4.5.0-release-branch 2017-08-15 14:23:31 -06:00
edhartnett
40e53580b6 fixed some refs 2017-08-15 14:01:17 -06:00
edhartnett
6b407dd38b fixed a subsection header 2017-08-15 13:33:03 -06:00
edhartnett
50566bad6b fixed some refs 2017-08-15 13:30:55 -06:00
Ward Fisher
04f88f5d83 Corrected some potential buffer overruns flagged by clang via static analysis. 2017-08-15 12:19:05 -06:00
Ward Fisher
cfb6549606 Corrected an issue reported by clang. 2017-08-15 12:03:15 -06:00
Ward Fisher
80318f6413 Merge branch 'v4.5.0-release-branch' 2017-08-14 13:52:13 -06:00
Ward Fisher
e006ea5e07 Fixed a simple mistake in test organization. 2017-08-11 18:36:44 -06:00
Ward Fisher
85e9aaf368 Wiring in a large test to check against a regression for the issue described in https://github.com/Unidata/netcdf-c/pull/457 2017-08-11 18:18:11 -06:00
Ward Fisher
22d4754306 Merge branch 'free_mpi_obj' of https://github.com/wkliao/netcdf-c into two-pulls 2017-08-10 14:30:59 -06:00
Ward Fisher
8fcf0e53cc Merge branch 'master' of https://github.com/edhartnett/netcdf-c into two-pulls 2017-08-10 14:30:05 -06:00
Ed Hartnett
eb98d238d0 Merge branch 'master' into master 2017-08-10 12:47:17 -06:00
edhartnett
96c8e190e7 fixed table and link in Large File section 2017-08-10 12:44:57 -06:00
Ward Fisher
8251784ec2 Merge branch 'tmp' into v4.5.0-release-branch 2017-08-09 14:13:42 -06:00
Ward Fisher
290ca69a70 Merge branch '17_64BIT_DATA_bug' of https://github.com/pastewka/netcdf-c into tmp 2017-08-09 14:13:30 -06:00
Ward Fisher
5f0e76b281 Updated release notes. 2017-08-09 14:12:24 -06:00
Lars Pastewka
bd33076424 Fixed computation of recsize for NC_64BIT_DATA files. 2017-08-09 21:47:08 +02:00
Ward Fisher
b50508479a Added a new product to the static software html page. 2017-08-08 16:11:13 -06:00
Wei-keng Liao
7992242a39 Call nc_close, which calls MPI_File_close, to avoid MPI wraning messages on MPI objects are still allocated. 2017-08-08 16:54:38 -05:00
Ward Fisher
24ca95645c Applied fix for a stack buffer overflow into 4.5.0 release branch. 2017-08-08 13:18:53 -06:00
Ward Fisher
ac503dd565 Updated release notes in support of https://github.com/Unidata/netcdf-c/pull/450 2017-08-08 13:17:51 -06:00
Ward Fisher
a6e3f577f2 Merge pull request #450 from rouault/fix_nc4_check_name_buffer_overflow
Fix stack buffer overflow in nc4_check_name()
2017-08-08 13:15:42 -06:00
Ward Fisher
f6ac978f25 Merge branch 'master' into fix_nc4_check_name_buffer_overflow 2017-08-08 11:22:06 -06:00
Ward Fisher
99625c0c9f Merge branch 'v4.5.0-release-branch' 2017-08-07 14:03:17 -06:00
Ward Fisher
8ab714f1d8 Corrected a missing endif. 2017-08-07 10:23:15 -06:00
Ward Fisher
a3f2dcff3c Corrected release date for rc2 2017-08-07 10:13:27 -06:00
Ward Fisher
05d3d7e9f5 Merge remote-tracking branch 'origin/d4tempfile.dmh' into v4.5.0-release-branch 2017-08-07 10:12:36 -06:00
Dennis Heimbigner
4d8fbbf501 If DAP (2 or 4) is enabled, but diskless is disabled, then the
dap code will create a real temporary file in which to store the
converted metadata for the DAP .dds or .dmr.

It was assumed that the nc_close code would reclaim the
temporary file. For DAP2, reclamation occurs in the ncio
code. For DAP4, it was assumed that the libsrc4 code would do
the reclamation, but for whatever reason, this is not happening.
Thus, in this situation, a temporary file is left in the file
system. Aside from being irritating to users, this screws up
'make distcheck'.

So the DAP4 code is fixed to ensure that the temporary file is
properly reclaimed independent of the libsrc4 code.
2017-08-05 22:41:31 -06:00
Ward Fisher
0a02f0cac7 Updated release notes for 4.5.0-rc2 2017-08-03 17:01:16 -06:00
Even Rouault
1989ddc252 Fix stack buffer overflow in nc4_check_name()
nc4_check_name() checks that the provided string doesn't exceed NC_MAX_NAME,
but fails to do so after calling nc_utf8_normalize(). This extra check is
needed since a caller of nc4_check_name(), like NC4_def_dim, allocates
norm_name as char norm_name[NC_MAX_NAME + 1]

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2840
Credit to OSS-Fuzz
2017-08-02 21:57:36 +02:00
Ward Fisher
716f76c322 Merge remote-tracking branch 'origin/issue435.dmh' into v4.5.0-release-branch 2017-07-28 15:24:16 -06:00
Ward Fisher
eea1cecaa9 Merge branch 'multi-pull' into v4.5.0-release-branch 2017-07-27 12:48:59 -06:00
Ward Fisher
9e7a902dcf Merge branch 'issue435.dmh' into multi-pull 2017-07-27 12:20:11 -06:00
Ward Fisher
8700f1bfd4 Merge branch 'v4.5.0-release-branch' into issue435.dmh 2017-07-27 12:17:16 -06:00
Ward Fisher
c88bc64bfa Merge remote-tracking branch 'origin/fieldmap.dmh' into multi-pull 2017-07-27 12:16:37 -06:00
Ward Fisher
44b82e8f1d Merge pull request #439 from Unidata/winpath.again.dmh
Add additional path name conversion checks
2017-07-26 15:45:34 -06:00
Ward Fisher
3e166fd26a Accomodating Windows winsock issue. 2017-07-26 13:40:03 -06:00
Ward Fisher
30711ccb20 Updated shell scripts to accomodate windows style carriage returns. 2017-07-26 13:35:27 -06:00