Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Execute request fails with input identifier as id attribute (id=identifier)

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
api, backend

调研方向

未指定源文件或测试。首先使用所示的 id 属性重现一个 WPS 2.0.0 Execute 请求,将其与 1.0.0 请求进行比较,并检查 PyWPS 4.5.1 如何读取输入标识符;当请求被接受且未报告缺少 area_of_interest 时,即表示完成。

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

描述

Description

Using a an npm package for WPS on the client, the switch to WPS 2.0.0 (for advanced feature) produces
WPS Execute requests in the following form

2.0.0 EXECUTE

...
<wps:Input id="pixel_size">
  <wps:Data mimeType="text/xml">
     <wps:LiteralValue dataType="xs:double">4</wps:LiteralValue>
  </wps:Data>
</wps:Input>
...

instead of this form (when using 1.0.0)

1.0.0 EXECUTE

...
<wps:Input>
    <ows:Identifier>pixel_size</ows:Identifier>
    <wps:Data>
        <wps:LiteralData>56</wps:LiteralData>
    </wps:Data>
</wps:Input>
...

I am not sure if this is a valid WPS request, but PyWPS execution fails when the first format is used with this error

<ows:Exception exceptionCode="MissingParameterValue" locator="area_of_interest" >
    <ows:ExceptionText>area_of_interest</ows:ExceptionText>
</ows:Exception>

Environment

  • operating system:
  • Python version: 3.8
  • PyWPS version: 4.5.1
  • source/distribution
  • git clone
  • Debian
  • PyPI
  • zip/tar.gz
  • [] other:
  • web server
  • Apache/mod_wsgi
  • CGI
  • other (gunicorn + nginx):

Steps to Reproduce

Send a WPS Service EXECUTE request with the 2.0.0 format

主要语言
Python
星标
186
派生
117
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

geopython/pywps 的其他 Issue

查看 geopython/pywps 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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