Can't use semicolons (and therefore html entities) in per-style attribution
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
比较 mod_tile.h 和 renderd.conf 中的 attribution 定义,然后跟踪每个 style 的值在出现在 TileJSON 输出之前是如何被解析的。确定分号和 HTML 实体应如何表示,以免被当作注释处理。当每个 style 的 attribution 能够可靠地接受这些值,并且所选的配置方式得到验证时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
The default attribution can be interpreted as html, e.g. when shown in tilejson output
https://github.com/openstreetmap/mod_tile/blob/master/mod_tile.h#L32
It can be overwritten per-style in renderd.conf
https://github.com/openstreetmap/mod_tile/blob/master/renderd.conf#L38
However, this doesn't work if you have any semicolons in your override string, e.g. for ampersands, copyright entities or similar. The role of semicolons in .ini files seems to be implementation-specific as to whether they are a comment delineator only at the start of the line, only when preceded by whitespace, or at any point during the line. Additionally, escape sequences (typically backslash, e.g. ; ) are implementation-specific. At the moment, we have an anywhere-no-escape parser.
Perhaps we need a different ini parser, or a different configuration file format.
- 主要语言
- C++
- 星标
- 318
- 派生
- 200
- 平均合并
- 3 天 18 小时
- 30 天内合并 PR
- 35
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openstreetmap/mod_tile 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 65/100
openstreetmap/mod_tile#292 · 4 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
openstreetmap/mod_tile#477 · 7 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
openstreetmap/mod_tile#466 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 35/100
openstreetmap/mod_tile#462 · 7 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
openstreetmap/mod_tile#447 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 openstreetmap/mod_tile 的全部 Issue
相似的 Issue
-
v3: Lua m.setvar() returns -1 on errors, so the script gets stack garbage可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭3.x bug
难度 2/5 1-3 小时 新手友好度 72/100
owasp-modsecurity/ModSecurity#3731 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
Sendspin/sendspin-cpp-cli#111 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
azerothcore/azerothcore-wotlk#28350 ·
维护者通常 1 天内回复
-
bench harness: a surplus TSV column is silently dropped, and stride = L // 6 duplicates questions未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
ambiguous enhancement
难度 2/5 1-3 小时 新手友好度 72/100
MaaAssistantArknights/MaaAssistantArknights#18976 · 1 条评论 ·
维护者通常 1 天内回复