Sanitize collabid's before making api requests
@oharsta がすでに取り組んでいます。
2026年9月11日 から。
評価
この issue はまだ評価されていません。
説明
AA sends the the user as a urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified to the Openconext-Invite backend, including special characters. Spring Boot (via Spring Security’s StrictHttpFirewall) blocks and rejects any request whose URL path contains a semicolon (;), throwing a RequestRejectedException. So a request containing a ; get's filterd by spring firewall in Invite, and returns an 500 error, without being logged in inviteserver.
Can we escape the paramater before sending it from AA, without changing the endpoint in invite and others?
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 Internal Server Error on GET request for "https://invite.server.host/api/external/v1/aa/urn:collab:person:example.com:alskdfjlsad;f": "{"timestamp":1789114333878,"error":"Bad Request","message":"No message available","path":"/api/external/v1/aa/urn:collab:person:example.com:alskdfjlsad;f","status":500}"
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at org.springframework.web.client.HttpServerErrorException.create(HttpServerErrorException.java:102)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:189)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:147)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:953)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:902)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:801)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:712)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at aa.aggregators.rest.RestAttributeAggregator.doRequest(RestAttributeAggregator.java:110)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at aa.aggregators.rest.RestAttributeAggregator.fetchData(RestAttributeAggregator.java:53)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at aa.aggregators.rest.RestAttributeAggregator.aggregate(RestAttributeAggregator.java:38)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at aa.service.AttributeAggregatorService.doAggregate(AttributeAggregatorService.java:132)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at aa.service.AttributeAggregatorService.lambda$getUserAttributes$9(AttributeAggregatorService.java:114)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at java.base/java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1456)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: #011at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
Sep 11 10:12:13 docker2.test.ams.surfconext.nl aaserver[852]: 2026-09-11 08:12:13,886 WARN [ForkJoinPool-1-worker-12] a.a.rest.RestAttributeAggregator:59 - Response body found for exception, returning response body
- 主要言語
- Java
- スター
- 1
- フォーク
- 3
- 平均マージ
- 1日 16時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenConext/OpenConext-attribute-aggregation のほかの issue
-
needs-refinement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
Improve loggingオープン
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
OpenConext/OpenConext-attribute-aggregation の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
apache/arrow-java#1311 ·
メンテナーはふだん 2 日以内に返信
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
security
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
IBM/networking-java-sdk#204 ·