Open
Description
- there was a bug in rustdoc where a toolchain specific static asset (
search.js
) wasn't referenced viastatic-root-path
, but via the path for release (invocation) specific assets. ( introduced in rustdoc: Consolidate static-file replacement mechanism rust#91062 ). - this was fixed with rustdoc: add hash to filename of toolchain files rust#101702, so all docs built after that are correct.
- our
LegacySharedResourcesHandler
which was a hack for Docs built during 2018-{10-12} link to the wrong url for static resources #1181 also worked for this bug, so this was never visible to users. - after the rebuild for Docs built during 2018-{10-12} link to the wrong url for static resources #1181 was finished we dropped the
LegacySharedResourcesHandler
with the last piece of the axum migration (migrate the main rustdoc handlers to axum, drop iron #1963). - we added a new workaround in refs #1979: add workaround for toolchain JS files that were referenced wrong #1980 which only handles
search.js
, and only at the specific location it might be requested. - we added another workaround in refs #1979, #1992: workaround for settings.js not served from the root #1993 to also handle
settings.js
, same as to refs #1979: add workaround for toolchain JS files that were referenced wrong #1980 - to remove the workaround, we need to rebuild the affected releases.
initial issue
- This was initially reported as "broken search" after migrate the main rustdoc handlers to axum, drop iron #1963 was merged.
- broken settings were reported in Broken settings on crossbeam-0.8.2 #1992
reported broken releases:
- search: https://docs.rs/mipidsi/latest/mipidsi/index.html?search=init (released 2022-10-19)
- search: https://docs.rs/js-sys/latest/js_sys/index.html?search=Array (released 2022-09-12)
- search: https://docs.rs/diesel/latest/diesel/?search=tosql (released 2022-10-11)
- settings: https://docs.rs/crossbeam/0.8.2/crossbeam/channel/index.html (released 2022-07-22)