server: XML responses contain `cursor="None"` on the last page
メンテナーはふだん 4 日以内に返信
評価
調査の方向性
server/app/interfaces/base.pyから始め、特に130–133行目のレスポンスのエンコーディングを確認し、XMLのページネーションメタデータをJSONレスポンスと比較します。シェルの数が上限より少ないときに、Accept: application/xmlを指定したGET /shellsで再現します。最終ページのXMLレスポンスでcursor属性が省略され、次のページがあるレスポンスでは引き続きcursorが含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
XML responses of paginated routes always carry a cursor
attribute. On the last page its value is the string None:
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
eclipse-basyx/basyx-python-sdk のほかの issue
-
adapter.aasx: Failsafe writer adds duplicate parts for conflicting files対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug good-first-issue sdk
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
eclipse-basyx/basyx-python-sdk#671 ·
メンテナーはふだん 4 日以内に返信
-
enhancement good-first-issue server
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
eclipse-basyx/basyx-python-sdk#670 ·
メンテナーはふだん 4 日以内に返信
-
bug good-first-issue sdk
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-basyx/basyx-python-sdk#665 ·
メンテナーはふだん 4 日以内に返信
-
bug server
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
eclipse-basyx/basyx-python-sdk#663 ·
メンテナーはふだん 4 日以内に返信
-
README CI badge is broken対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンbug documentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
eclipse-basyx/basyx-python-sdk#656 ·
メンテナーはふだん 4 日以内に返信
eclipse-basyx/basyx-python-sdk の issue をすべて見る
似ている issue
-
Project submission:オープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
slavakurilyak/awesome-ai-agents#845 ·
メンテナーはふだん 1 日以内に返信
-
tests: pin that the atomic writers in utils/paths.py stage the temporary file in the target's directory対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンdifficulty:2 enhancement good first issue
難易度 1/5 1〜3時間 初心者へのやさしさ 92/100
MakazhanAlpamys/Soup#2178 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] dcg.waggr permutation p-values are folded twice, so near-zero scores get the smallest p-valuesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
scverse/rapids-singlecell#854 ·
メンテナーはふだん 1 日以内に返信
-
Slang input: int8_t4_packed and uint8_t4_packed are copied into CrossGL対応中かも @ninglinLiu が今日担当しました。 オープンarea:frontend backend:slang bug direction:input
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
random_elements(unique=True) on an OrderedDict: ZeroDivisionError once only zero weights remain, AssertionError with use_weighting=False対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 13 日以内に返信