Commit 48f6f09
committed
fix springfiles probe: lowercase filename in URL
Springfiles is Apache on Linux (case-sensitive) and stores all 3570 of
its map filenames lowercase — verified against the live catalog, zero
exceptions. ZK keeps original casing on ResourceContentFile.FileName
(e.g. Sever_1.sd7, Gasbag_Grabens_1.1.1.sd7), so the HEAD probe at
.../files/maps/{cf.FileName} returns 404 for every CamelCase map, the
probe writes LinkCount=0, and the result sticks for 24 h.
Affects far more than the 5 maps in #3057 — any map whose original
upload preserved capital letters has had a permanently-broken SF mirror.
Lowercased the filename component in the three places that build the
springfiles URL (BuildLinks, RunProbe's inner cache check, ProbeAndAssign).
The local URL keeps original casing — IIS on the ZK host is
case-insensitive, no change needed there.
Existing cached state with the old mixed-case URL stays "missing" until
the natural 24 h cache expiry, at which point each map gets re-probed
with the lowercased URL and recovers.1 parent 0605614 commit 48f6f09
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | | - | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
172 | | - | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
0 commit comments