Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

server: XML responses contain `cursor="None"` on the last page

オープン 初心者向け
#673 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

@qiaobochi040726-source がすでに取り組んでいます。

2026年10月23日 から。

  • #677 @qiaobochi040726-source による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
api

調査の方向性

server/app/interfaces/base.pyから始め、特に130–133行目のレスポンスのエンコーディングを確認し、XMLのページネーションメタデータをJSONレスポンスと比較します。シェルの数が上限より少ないときに、Accept: application/xmlを指定したGET /shellsで再現します。最終ページのXMLレスポンスでcursor属性が省略され、次のページがあるレスポンスでは引き続きcursorが含まれていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug good-first-issue server

XML responses of paginated routes always carry a cursor
attribute. On the last page its value is the string None:

https://github.com/eclipse-basyx/basyx-python-sdk/blob/2773ac069d3163cbbd32c3c634813d38bbe521ad/server/app/interfaces/base.py#L130-L133

Steps to reproduce: GET /shells with Accept: application/xml
on a repository with fewer than limit shells:

<response xmlns:aas="https://admin-shell.io/aas/3/1" cursor="None">...

Expected behavior: No cursor attribute when there is no next
page, as in the JSON response. Clients must treat the cursor as an
opaque value
(Part 2, Pagination),
so None looks like a valid next-page token.

Actual behavior: cursor="None"; a client that follows it sends
?cursor=None and gets 400.

Environment: develop @ 2773ac06.

Possible fix: Set the attribute only if paging_metadata.cursor
is not None. #526 kept the XML encoding on purpose because there is
no schema for XML responses (#519); this only drops the literal
None.

主要言語
Python
スター
105
フォーク
56
平均マージ
4日 1時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-basyx/basyx-python-sdk のほかの issue

eclipse-basyx/basyx-python-sdk の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。