mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
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. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
d4bytes.c | ||
d4bytes.h | ||
d4chunk.c | ||
d4chunk.h | ||
d4crc32.c | ||
d4curlflags.c | ||
d4curlfunctions.c | ||
d4curlfunctions.h | ||
d4cvt.c | ||
d4data.c | ||
d4debug.c | ||
d4debug.h | ||
d4dump.c | ||
d4file.c | ||
d4fix.c | ||
d4http.c | ||
d4http.h | ||
d4includes.h | ||
d4meta.c | ||
d4odom.c | ||
d4odom.h | ||
d4parser.c | ||
d4printer.c | ||
d4rc.c | ||
d4read.c | ||
d4read.h | ||
d4swap.c | ||
d4util.c | ||
d4util.h | ||
d4varx.c | ||
ezxml_extra.c | ||
ezxml.c | ||
ezxml.h | ||
Make0 | ||
Makefile.am | ||
ncd4.h | ||
ncd4dispatch.c | ||
ncd4dispatch.h | ||
ncd4types.h |