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
e35a14a85d
1. synch with oc
...
2. modify oc2/ocrc.c rcfilenames to look for .ocrc before .dodsrc.
3. Modify testauth.sh to avoid using names that might already
exist for cookies file and netrc file. Still must use .ocrc
to test for local/home search.
4. Modify testauth.sh to save and restore any file it creates
that already exists.
2014-12-31 22:29:36 -07:00
dmh
3a559d3f1d
Fix occurlflags bug
2014-12-28 15:54:02 -07:00
Ward Fisher
3aa6c969e2
Added an explicit check for CURLOPT_CHUNK_BGN_FUNCTION, otherwise we break the build on systems with libcurl older than version 7.21.0
2014-12-27 22:59:06 -08:00
dmh
20720199c8
1. synch with oc
...
2. fix ocuri parameter handling
3. add ncdap_test/testuri.sh to test parameter handling.
2014-12-27 20:42:01 -07:00
dmh
c4bc1569f6
Update CMakelist to match Makefile.am in oc2
2014-12-26 13:08:41 -07:00
dmh
7a0a10ec7b
add occurlfunctions.[ch] to the dist.
2014-12-26 12:27:54 -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
3fadeb8ff1
Fixed several memory leaks reported by static analysis.
2014-10-29 16:09:54 -06:00
Martin Steghöfer
a9012c7bfe
Fix segmentation fault when parsing malformed URLs (e.g. "http:/").
2014-10-05 19:28:03 +02:00
Ward Fisher
c60b45394f
Coverity: 711882, leaked storage bug.
2014-10-03 12:57:02 -06:00
Ward Fisher
b43813d821
When using the '-ansi' flag with gcc, netcdf would fail to build because of the use of '//' for one-line comments. I've addressed this by replacing instances of // with enclosing comment blocks.
2014-08-26 11:19:32 -06:00
Ward Fisher
e6a78c7a0b
Coverity: 711710
2014-08-25 10:34:06 -06:00
Ward Fisher
c9580fa109
Coverity: 711709
2014-08-25 10:26:57 -06:00
Ward Fisher
ee6f0f00f3
Coverity: 711873
2014-08-22 15:33:45 -06:00
Ward Fisher
6b34c2ab74
Coverity 711708, second instance.
2014-08-22 15:26:54 -06:00
Ward Fisher
8c91f7e57c
Coverity 711708, first instance.
2014-08-22 15:25:27 -06:00
Ward Fisher
a28b123ca4
Coverity: 1198196
2014-08-08 15:22:46 -06:00
Ward Fisher
6c071be031
Corrected issues where functions were not available in Windows. Specifically strndup. Also accomodated an included needed for getcwd.
2014-08-07 17:03:27 -06:00
Ward Fisher
948eb1f357
Coverity: 1204252
2014-08-01 10:55:34 -06:00
Ward Fisher
db67d9a6f6
Coverity 1152156
2014-07-31 16:42:28 -06:00
Ward Fisher
02a7d451bc
Coverity 711880 Case #2
2014-07-29 11:28:44 -06:00
Ward Fisher
171dd2fc8e
Coverity issue 711880
2014-07-29 11:24:25 -06:00
Ward Fisher
2cce056ce9
Addressed coverity issue 711901
2014-07-29 10:50:01 -06:00
Ward Fisher
37c5338a86
Fixed a static-analysis identified issue related to a variable without a value.
2014-07-09 13:08:14 -06:00
Dennis Heimbigner
39a5bf5efa
Modify ncdap_test/test_nstride_cached.c
...
to use a dataset on remotetest instead
of an external server.
2014-07-01 10:39:18 -06:00
Dennis Heimbigner
645da599da
conflicts
2014-06-26 16:42:13 -06:00
Dennis Heimbigner
641c982c8c
synch with git/oc
2014-06-26 16:40:08 -06:00
dmh
ecec75fcb2
make0
2014-06-25 22:18:22 -06:00
Ward Fisher
7f812b367e
Manual merge of pull request https://github.com/Unidata/netcdf-c/pull/64 contributed by nschloe. Assorted CMake improvements.
2014-06-11 15:51:31 -06:00
dmh
ed068ef643
Fix misc. typos from previous commit
2014-06-02 14:02:34 -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
e599edaec1
Fixed a declaration error in Visual Studio.
2014-04-23 13:29:39 -06:00
Ward Fisher
a8aac6f568
Corrected a null dereference error.
2014-04-18 19:13:34 -06:00
Ward Fisher
b34956e06e
Fixed clang-reported issue: dereference of undefined pointer value.
2014-04-18 17:02:58 -06:00
dmh
98d27e838d
[NCF-299]
...
When a .dodsrc file is present, and
specifies user name and password,
it is being ignored after the first time.
Fix required a major rewrite of ocrc.c because
it was mishandling a number of .dodsrc entries.
2014-04-16 14:08:12 -06:00
dmh
4346b01c19
note jna problem
2014-04-15 21:25:44 -06:00
dmh
fb00c88763
fix bugs introduced by previous coverity fixes
2014-04-07 14:01:40 -06:00
dmh
389d2ea394
fix some coverity complaints
2014-04-07 13:00:47 -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
Ward Fisher
de08275c1c
Added checks for CURLOPT_USERNAME and CURLOPT_PASSWORD. If they are not found, CURLOPT_USERPWD is used instead. This is important because, on some Windows systems, libcurl does not provide CURLOPT_USERNAME or CURLOPT_PASSWORD.
2014-03-17 15:57:44 -06:00
dmh
b524e151ef
Remove last vestiges of thredds-test
2014-03-14 14:07:35 -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