-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of '/' characters in names in DAP2.
re: Unidata/thredds#1224 [note that this is an issue in thredds, but the fix is in netcdf-c] A thredds server can encode a netcdf-4 file into DAP2 by flattening names to include the containing group path, where the group names are separated by '/'. But the '/' is prohibited in netcdf names even if escaped (a decision before my time). So, if the netcdf-c/libdap2 code encounters a DAP2 name with '/' characters, the '/' characters are converted to the string %2f. Unfortunately, there is a glitch, namely that converting the leading '/' produces a name that is still illegal. This PR modifies the code to just drop the leading '/' character.
- Loading branch information
1 parent
30c2ca2
commit c59d5ce
Showing
5 changed files
with
9 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters