ruanweihong-aaa commented on PR #14085:
URL: https://github.com/apache/apisix/pull/14085#issuecomment-6764597735
The regression was introduced by #13078 (3.17.0).
Before that, substitution ran after yaml.load(), over the parsed table. The
problem was that it couldn't see quoting: "${{BIG_ID}}" became
"356002209726529540" and was then coerced by tonumber() into scientific
notation — that's #12932.
#13078 fixed #12932 by moving substitution before yaml.load(), running
resolve_conf_var_in_text() over the whole document. Quoting semantics were
preserved, but substitution now happens before YAML lexing, when comments,
quotes and block scalars are still plain text.
Two regressions followed:
placeholders inside comments are substituted, so an unset variable aborts
startup (#13685);
multiline values (PEM) are inserted as YAML source and either break the
document or get folded (#14038).
So #14085 is not a new feature — it moves that step back after parsing,
while keeping the quoting semantics #13078 was after.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]