You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "vdegans (via GitHub)" <gi...@apache.org> on 2026/02/25 13:12:28 UTC

[PR] fix: improve annotation extraction by trimming whitespace [apisix-ingress-controller]

vdegans opened a new pull request, #2724:
URL: https://github.com/apache/apisix-ingress-controller/pull/2724

   <!-- Please answer these questions before submitting a pull request -->
   
   ### Type of change:
   
   - [x] Bugfix
   - [x] Refactor
   - [x] Chore
   
   ### What this PR does / why we need it:
   
   Fixes: #2723
   
   Currently, annotations that accept comma-separated lists (such as whitelist-source-range and blacklist-source-range) are not trimmed, so any spaces after commas are preserved. This results in IP entries starting with a space, which breaks the whitelist and blacklist functionality.
   
   This PR trims whitespace from each annotation item before processing, ensuring that spaces after commas do not cause parsing errors.
   
   Behavior Before / After:
   
   Aspect: Annotation parsing
   Before: "1.2.3.4, 5.6.7.8" -> ["1.2.3.4", " 5.6.7.8"]
   After:  "1.2.3.4, 5.6.7.8" -> ["1.2.3.4", "5.6.7.8"]
   
   Aspect: Whitelist/Blacklist enforcement
   Before: Fails for entries with leading spaces
   After:  Works correctly for all entries
   
   ### Related issues, if any:
   
   - #2723
   
   ### Pre-submission checklist:
   
   - [x] Did you explain what problem this PR solves? Or what new features have been added?
   - [ ] Have you added corresponding test cases?
   - [ ] Have you modified the corresponding document?
   - [ ] Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: improve annotation extraction by trimming whitespace [apisix-ingress-controller]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #2724:
URL: https://github.com/apache/apisix-ingress-controller/pull/2724#issuecomment-4550497622

   This pull request/issue has been closed due to lack of activity. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: improve annotation extraction by trimming whitespace [apisix-ingress-controller]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #2724: fix: improve annotation extraction by trimming whitespace
URL: https://github.com/apache/apisix-ingress-controller/pull/2724


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: improve annotation extraction by trimming whitespace [apisix-ingress-controller]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #2724:
URL: https://github.com/apache/apisix-ingress-controller/pull/2724#issuecomment-4323629569

   This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org