simplesamlphp / simplesamlphp/simplesamlphp-module-aggregator2

Fix local (non-http) metadata-locations

未关闭
#35 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
PHP
星标
5
派生
6
PR 合并指标
30 天内没有已合并 PR

描述

  1. SimpleSAML\Test\Module\aggregator\Controller\AggregatorTest::testGetWithId

Symfony\Component\HttpClient\Exception\InvalidArgumentException: Invalid URL: scheme is missing in "tests/metadata/example.xml". Did you forget to add "http(s)://"?
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/vendor/symfony/http-client/HttpClientTrait.php:582
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/vendor/symfony/http-client/HttpClientTrait.php:179
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/vendor/symfony/http-client/CurlHttpClient.php:91
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/vendor/simplesamlphp/simplesamlphp/src/SimpleSAML/Utils/HTTP.php:554
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/src/EntitySource.php:150
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/src/EntitySource.php:228
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/src/EntitySource.php:263
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/src/Aggregator.php:514
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/src/Aggregator.php:693
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/src/Aggregator.php:727
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/src/Controller/Aggregator.php:98
/home/runner/work/simplesamlphp-module-aggregator2/simplesamlphp-module-aggregator2/tests/src/Controller/AggregatorTest.php:125

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 tests/src/Controller/AggregatorTest.php 开始并重现 testGetWithId,然后按照失败信息中的说明,通过 src/EntitySource.php 跟踪本地元数据路径。当 tests/metadata/example.xml 被接受为本地元数据位置,且 Symfony 不再报告缺少 URL 方案并且测试通过时,此更改就完成了。

由索引模型根据 Issue 内容生成。

评估

技术栈
php, symfony
领域
backend, testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。