Repository navigation
Commit 262d550
fix(mime-node): inherit the access policy from the tree a node hangs in
MimeNode reads disableFileAccess and disableUrlAccess off itself, and
createChild builds the child from nothing but the options the caller handed it.
A child of a closed root therefore started out open, and a stream stage plugin
that reached for the built tree could add a node whose path was read and
delivered inside a message on a transporter that had closed file access.
_getStream now takes the answer from the node and every node above it, so a
subtree assembled before it is attached is covered too.
appendChild has to detach first for that to hold, which is what its own doc
comment already promised. Without it the node stayed in the previous parent's
childNodes and kept streaming as part of that tree while parentNode pointed at
the new one, so appending a node of a closed tree to a second open tree
answered for the wrong tree.
MailComposer passes both flags at every node it builds, so the normal sendMail
path is unaffected.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Dt9FhwVrxHM3HatmiqMdPv1 parent ab7ef34 commit 262d550
2 files changed
Lines changed: 113 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
247 | 255 | | |
248 | 256 | | |
249 | 257 | | |
| |||
1026 | 1034 | | |
1027 | 1035 | | |
1028 | 1036 | | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1029 | 1057 | | |
1030 | 1058 | | |
1031 | 1059 | | |
| |||
1056 | 1084 | | |
1057 | 1085 | | |
1058 | 1086 | | |
1059 | | - | |
| 1087 | + | |
1060 | 1088 | | |
1061 | 1089 | | |
1062 | 1090 | | |
| |||
1070 | 1098 | | |
1071 | 1099 | | |
1072 | 1100 | | |
1073 | | - | |
| 1101 | + | |
1074 | 1102 | | |
1075 | 1103 | | |
1076 | 1104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
47 | 63 | | |
48 | 64 | | |
49 | 65 | | |
| |||
1976 | 1992 | | |
1977 | 1993 | | |
1978 | 1994 | | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
1979 | 2006 | | |
1980 | 2007 | | |
1981 | 2008 | | |
| |||
2059 | 2086 | | |
2060 | 2087 | | |
2061 | 2088 | | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
2062 | 2145 | | |
2063 | 2146 | | |
2064 | 2147 | | |
| |||
0 commit comments