mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
The sibling Azure emulator lost TLS startup on Windows: a path such as D:\Dev\floci\data\tls\cert.crt reached the HTTP server as D:Devflocidatatlscert.crt and died with NoSuchFileException. That is not general SmallRye behaviour, which is what makes it easy to reintroduce. Expression handling leaves a value with no '$' untouched and deliberately compiles without escape processing; the damage comes from StringUtil.split, reached only by the converter for collection-typed properties, which consumes every backslash. So the property's declared type is the entire defence. This emitter is safe today only because it writes quarkus.tls.key-store.pem.0.cert, a scalar Path. The key it wrote before the TLS registry migration, quarkus.http.ssl.certificate.files, is an Optional<List<Path>> and is mangled. Nothing recorded that distinction, so moving back to a plural key would silently break Windows again. Adds tests that assert a Windows-shaped path round-trips through a scalar property, demonstrate the mangling on the collection path so the reasoning is evidence rather than assertion, and fail if the collection-typed keys are ever emitted again. Also hoists the internal HTTP and HTTPS port literals into constants on TlsConfigSource. TlsProxyServer routes to those ports and had its own independent copies, so the two could drift apart silently.