get_collection_map does not parse the transparent query parameter
维护者通常 1 天内回复
评估
调研方向
The string transparent is copied into query_args without conversion in pygeoapi/api/maps.py near line 135, and MapScriptProvider in pygeoapi/provider/mapscript_.py around lines 185-188 tests it as a truthy value. Read both, then check how the other parsed parameters are converted. Done means the API passes a real bool and the provider's check works for 'false'. Pull request #2445 is already open against this issue, so review or coordinate with it before writing a new patch.
由索引模型根据 Issue 内容生成。
描述
When handling an OGC API Maps request, pygeoapi does not parse the transparent query parameter into a bool, as seen in:
As seen above, if request.params['transparent'] exists, then it is stored as is in query_args['transparent'] - i.e. as a string.
This means that map providers are left to parse this parameter, unlike all other parameters, which are parsed by pygeoapi before calling the map provider.
This is also causing a bug in the built-in MapScriptProvider. This provider does not parse the transparent parameter either. It simply tries to use it, as seen in:
In the above snippet, as explained before, it is possible that transparent is a string. When that is the case, the above if check will not work as intended (because in Python all strings are truthy, i.e. if "false" evaluates to True).
- 主要语言
- Python
- 星标
- 630
- 派生
- 340
- 平均合并
- 3 天 17 小时
- 30 天内合并 PR
- 15
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
geopython/pygeoapi 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
the query parameter limit is not working for jobs可能已有人在做 @amantebriwal4321 于 5 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
geopython/pygeoapi#2426 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
维护者通常 1 天内回复
-
Performance issues affecting wide table sources可能已有人在做 @reinvantveer 于 10 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
-
MVT-postgresql: zoomed-out tiles miss features when storage_crs is projected (e.g. UTM)可能已有人在做 @doublebyte1 于 10 天前认领。 未关闭bug OGC API - Tiles
难度 4/5 3-5 天 新手友好度 58/100
geopython/pygeoapi#2466 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 geopython/pygeoapi 的全部 Issue
相似的 Issue
-
kind/bug priority/medium qa_automation
难度 2/5 1-3 小时 新手友好度 78/100
yugabyte/yugabyte-db#37324 ·
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 87/100
btclib-org/btclib-node#2260 ·
维护者通常 1 天内回复
-
ChatBedrockConverse changes the keys of JSON tool results to camelCase (`order_id` becomes `orderId`)可能已有人在做 @geyazheng 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
langchain-ai/langchain-aws#1469 ·
维护者通常 1 天内回复
-
GCToggler leaves collection enabled if the body re-enables it可能已有人在做 @Gambit-Checkmate 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 7 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复