Commit 50e3b99
committed
Improve CDS extractor diagnostics and tests
Improves the diagnostic messages created by the CDS extractor
reports for the edge case where some file path is associated
with a diagnostic warning or error but is not a path within the
source root directory that the CDS extractor was configured to
scan. This change attempts to continue to prevent path injection
and path traversal attacks for any diagnostics generated by the
CDS extractor while ensuring the unlinkability of this edge case
is explained to any user viewing such diagnostics. We don't expect
to encounter situations where a diagnostic error or warning is
reported for any file outside of the scanned source root directory,
but we want to handle such situations well and we do so here by
improving the text of our diagnostic message to the user without
giving the user a link to a non-repo file.1 parent 7d1e1bc commit 50e3b99
File tree
4 files changed
+63
-4
lines changed- extractors/cds/tools
- dist
- src
- test/src
4 files changed
+63
-4
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
82 | 97 | | |
83 | 98 | | |
84 | 99 | | |
| |||
88 | 103 | | |
89 | 104 | | |
90 | 105 | | |
91 | | - | |
| 106 | + | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
| |||
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
119 | 135 | | |
120 | 136 | | |
121 | 137 | | |
| |||
155 | 171 | | |
156 | 172 | | |
157 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
158 | 183 | | |
159 | 184 | | |
160 | 185 | | |
| |||
176 | 201 | | |
177 | 202 | | |
178 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
179 | 213 | | |
180 | 214 | | |
181 | 215 | | |
| |||
0 commit comments