mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
MwaaEnvironmentManager.pythonTagFor parses AirflowVersion with a bare Integer.parseInt. resolveAirflowVersion only checked that the requested version was present in the operator-configured supported-versions list, so a misconfigured entry (e.g. a stray "latest") would pass that check and reach pythonTagFor, surfacing as an internal NumberFormatException out of container startup, well after Postgres had already been created for the environment, rather than a clean 400 at CreateEnvironment. resolveAirflowVersion now also validates the version's shape (a numeric major.minor, with an optional patch) before checking list membership, so a malformed value is rejected immediately as ValidationException. Follow-up from hectorvent's review on #3445.