Skip to content

Commit af62ad8

Browse files
committed
list disallowed characters in file paths or locations for draft-4
1 parent 918e72e commit af62ad8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

draft-4/Process.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ $graph:
8282
If the `path` field is provided but the `location` field is not, an
8383
implementation may assign the value of the `path` field to `location`,
8484
then follow the rules above.
85+
86+
If the `location` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02)
87+
(`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`,
88+
`<space>`, `<tab>`, and `<newline>`) or characters
89+
[not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml)
90+
for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452)
91+
then implementations may terminate the process with a
92+
`permanentFailure`.
8593
jsonldPredicate:
8694
_id: "@id"
8795
_type: "@id"
@@ -98,6 +106,14 @@ $graph:
98106
As a special case, if the `path` field is provided but the `location`
99107
field is not, an implementation may assign the value of the `path`
100108
field to `location`, and remove the `path` field.
109+
110+
If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02)
111+
(`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`,
112+
`<space>`, `<tab>`, and `<newline>`) or characters
113+
[not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml)
114+
for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452)
115+
then implementations may terminate the process with a
116+
`permanentFailure`.
101117
jsonldPredicate:
102118
"_id": "cwl:path"
103119
"_type": "@id"
@@ -239,6 +255,14 @@ $graph:
239255
If the `path` field is provided but the `location` field is not, an
240256
implementation may assign the value of the `path` field to `location`,
241257
then follow the rules above.
258+
259+
If the `location` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02)
260+
(`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`,
261+
`<space>`, `<tab>`, and `<newline>`) or characters
262+
[not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml)
263+
for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452)
264+
then implementations may terminate the process with a
265+
`permanentFailure`.
242266
jsonldPredicate:
243267
_id: "@id"
244268
_type: "@id"
@@ -250,6 +274,14 @@ $graph:
250274
must not be used in any other context. The command line tool being
251275
executed must be able to to access the directory at `path` using the POSIX
252276
`opendir(2)` syscall.
277+
278+
If the `path` contains [POSIX shell metacharacters](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_02)
279+
(`|`,`&`, `;`, `<`, `>`, `(`,`)`, `$`,`` ` ``, `\`, `"`, `'`,
280+
`<space>`, `<tab>`, and `<newline>`) or characters
281+
[not allowed](http://www.iana.org/assignments/idna-tables-6.3.0/idna-tables-6.3.0.xhtml)
282+
for [Internationalized Domain Names for Applications](https://tools.ietf.org/html/rfc6452)
283+
then implementations may terminate the process with a
284+
`permanentFailure`.
253285
jsonldPredicate:
254286
_id: "cwl:path"
255287
_type: "@id"

0 commit comments

Comments
 (0)