Robert T. McGibbon
3303ccd519
Fix preprocessor for mingw
2015-12-07 18:08:13 -08:00
Ward Fisher
612b35a84c
Merge branch 'master' into cdf-5, in preparation for merging the CDF-5 functionality into the master branch. This will be the key new feature for netcdf 4.4.0.
2015-11-05 13:40:35 -07:00
dmh
0f59785f37
sync with base oc library
2015-10-22 15:34:56 -06:00
dmh
859f105005
merge-squash
2015-08-15 16:26:35 -06:00
xantares
c1b56c3f3a
fix mingw build
...
that code path is common to all win32 platforms: msvc & mingw/cygwin
2015-08-03 23:27:41 +02:00
Dennis Heimbigner
0d082d79ea
synch oc
2015-05-29 17:31:42 -06:00
Ward Fisher
6ed4770e0a
Added a typedef int pid_t for Windows platforms, solves a unix compatibility issue.
2015-05-28 10:14:45 -06:00
dmh
be5e3cd606
1. Allow for the user specified rc file via the env variable
...
DAPRCFILE. Note that the value of this environment
variable should be the absolute path of the rc file, not
the path to its containing directory.
2. fixup testauth.sh and add some new tests
3. synch oc
2015-05-24 17:31:39 -06:00
dmh
88f1ac820c
1. synch with oc lib
...
2. update to add docs/auth.md
2015-03-02 20:26:39 -07:00
Ward Fisher
c659a0e353
Coverity 1264403, Explicit null dereferenced.
2015-01-20 12:44:28 -07:00
Ward Fisher
59f8cf19f1
Corrected resource leak, Coverity 1264412
2015-01-20 10:53:42 -07:00
Ward Fisher
69b6935ca5
Removed OCASSERT sizeof(void*) == sizeof(off_t), to see what repercussions are for other tests on 32-bit machines.
2015-01-16 09:18:39 -07:00
dmh
65f78d6a8b
1. synch with oc
...
2. replace all occurrences of
'template' with 'pattern'
since template is reserved in windows.
2015-01-15 14:19:51 -07:00
Ward Fisher
393db0018e
Addressed an issue causing MSVC-based builds to fail. See https://github.com/Unidata/netcdf-c/issues/96
2015-01-13 12:44:28 -07:00
Ward Fisher
8487f28277
Removed a stale (potentially) assertion on Dennis' advice to debug an issue.
2015-01-12 12:09:34 -07:00
Ward Fisher
4ecbbe64d5
Fixed a few issues preventing the build from working on MSVC.
2015-01-12 11:05:45 -07:00
dmh
3a559d3f1d
Fix occurlflags bug
2014-12-28 15:54:02 -07:00
dmh
f423f27693
Sync with oc project.
...
This supports better authorization
handling for DAP requests, especially redirection
based authorization. I also added a new test case
ncdap_tests/testauth.sh.
Specifically, suppose I have a netrc file /tmp/netrc
containing this.
machine uat.urs.earthdata.nasa.gov login xxxxxx password yyyyyy
Also suppose I have a .ocrc file containing these lines
HTTP.COOKIEJAR=/tmp/cookies
HTTP.NETRC=/tmp/netrc
Assume that .ocrc is in the local directory or HOME.
Then this command should work (assuming a valid login and password).
ncdump -h "https://54.86.135.31/opendap/data/nc/fnoc1.nc "
2014-12-24 10:22:47 -07:00
dmh
7de1f7bef8
oc synch
2014-11-30 20:30:23 -07:00
dmh
a2e9fb854b
synch with base oc library
2014-11-21 16:20:44 -07:00
Ward Fisher
e6a78c7a0b
Coverity: 711710
2014-08-25 10:34:06 -06:00
Dennis Heimbigner
641c982c8c
synch with git/oc
2014-06-26 16:40:08 -06:00
dmh
774428f2fd
There are a number of cases in the oc code
...
where a procedure is defined to return int
and really returns OCerror. This causes
problems in AIX. Fixed those I could find.
2014-05-08 14:13:51 -06:00
dmh
ed5a504417
Fix int/enum conversion bug: re esupport (TXX-867549)
2014-05-06 13:10:59 -06:00
Ward Fisher
76e5e0f1fa
Addressed several minor issues revealed by static analysis (coverity, clang). Mostly to do with extreme corner cases in which a null pointer would be dereferenced, or dereferencing a non-null (but non-initialized) pointer would result in garbage.
2014-03-28 17:11:26 -06:00
dmh
c7086dd04b
Add support to detect authorization errors to DAP
2014-03-11 11:58:22 -06:00
dmh
a189b98b0b
1. Any test that references nctestserver/NC_findtestserver
...
should be under ENABLE_DAP_REMOTE_TESTS.
Fixed to make sure that this is so.
Also attempted to fix ncdap_test/CMakeLists.txt,
but probably got it wrong.
HT to Nico Schlomer.
2. Attempted to reduce the number of conversion errors
when -Wconversion is set. Fixed oc2, but
rest of netcdf remains to be done.
HT to Nico Schlomer.
3. When doing #2 , I discovered an error in ncgen.y
that has remained hidden. This required some other
test case fixes.
2014-03-08 20:41:30 -07:00
dmh
0fa9dc98eb
synch oc
2014-01-21 12:50:15 -07:00
Ward Fisher
1d007eb101
Addressed a number of minor bugs reported by Clang.
2013-11-20 13:37:21 -07:00
dmh
d6061db87d
define mode_t when under windows
2013-11-15 15:41:17 -07:00
dmh
baed147ba4
[NCF-277]
...
Fix Http Basic Authorization.
The problem is really in oc2.0.
In order for it to work,
the CURLOPT_COOKIEJAR must have
a non-null value. The code
was already there, but not being
used for some reason.
1. fixed cookiejar code in oc2.0
2. synched oc2.0 with netcdf-c/oc2
3. added a test case
2013-11-15 11:38:54 -07:00
dmh
2bc308432d
sync with oc2.0
2013-11-14 15:13:20 -07:00
Ward Fisher
71e8ed54cd
Addressed Coverity issue 711904, 'Insecure temporary file'.
2013-08-14 11:21:18 -06:00
Ward Fisher
f51f97546b
Addressed Coverity issue 752015, resource leak.
2013-08-14 09:51:10 -06:00
Ward Fisher
f43bf8f1da
Addressed a handful of issues identified by
...
Coverity static analysis.
2013-08-05 20:36:33 +00:00
Dennis Heimbigner
254c0e7c96
Historically
...
ncgen3 and ncgen
have treated
uppercase atomic types
the same as lower case.
Change so upper case are no
longer allowed.
Also, synch oc.
2013-05-15 17:37:04 +00:00
Dennis Heimbigner
3b0fb5bd82
Synch oc2 with baseline oc2.0
2013-05-11 19:36:31 +00:00
Ward Fisher
10807379c3
Merging from CMake branch in preparation for 4.3.0 release.
2013-04-29 20:15:57 +00:00
Ward Fisher
ceb736c4b5
Corrected bug introduced via typo. Bug identified
...
by Coverity. Thanks, Coverity!
2013-03-14 23:23:36 +00:00
Ward Fisher
6096f6b43b
Merged changes from CMake branch.
...
Addressed a handful of memory leaks
reported by Coverity.
2013-03-14 22:49:21 +00:00
Ward Fisher
12b7ac7048
o Improved package_source support in CMake-based builds.
...
o Corrected an issue related to uninitialized variables
which caused test failures on 2 test systems under
very specific circumstances.
2013-02-19 23:29:41 +00:00
Dennis Heimbigner
70186d5329
Fix bug in dataError when no error message is found
2013-02-11 23:32:46 +00:00
Dennis Heimbigner
4109174d00
Add quick check for Error {...} at start of the datadds data part
2013-02-07 22:14:57 +00:00
Dennis Heimbigner
c11e78314e
periodic sync of oc2 dir with the official oc2.0 repository
2012-12-18 21:08:23 +00:00
Dennis Heimbigner
c684a02d87
fix typo
2012-12-07 00:23:50 +00:00
Dennis Heimbigner
c114861e68
fix dfile.c error reporting
2012-12-06 21:17:36 +00:00
Ward Fisher
f844126d0e
Addressed a buffer overrun issue; making the assumption this is an
...
error. On the off chance it wasn't an error, a proper fix will be
formulated.
2012-12-05 17:44:39 +00:00
Dennis Heimbigner
ec761ec8fb
null=>NULL error
2012-12-04 23:32:32 +00:00
Dennis Heimbigner
97344d8551
make consistent with svn/oc2.0
2012-12-04 03:32:41 +00:00
Dennis Heimbigner
29d3fe7d51
fix bug in reading a file url (needs to signal binary if possible)
2012-08-21 23:34:25 +00:00