Skip to content

server: only write the XML cursor attribute when there is a next page - #677

Closed
qiaobochi040726-source wants to merge 1 commit into
eclipse-basyx:mainfrom
qiaobochi040726-source:20261023-xml-cursor
Closed

qiaobochi040726-source wants to merge 1 commit into
eclipse-basyx:mainfrom
qiaobochi040726-source:20261023-xml-cursor

Conversation

@qiaobochi040726-source

Copy link
Copy Markdown

XML pagination wrote the cursor attribute unconditionally, so the last page came back with cursor="None" and a client following it sends ?cursor=None and gets a 400. Now the attribute is only set when there is a next page, same as the JSON branch.

Added two tests under server/test/interfaces for the last page and for a page that does have a next cursor.

pytest test in server/: 10 passed, 1 failed — test_shells_asset_ids.py fails the same way on main, unrelated to this change.

closes #673

@s-heppner

Copy link
Copy Markdown
Member

This is a duplicate of #679, since the ECA is not signed here, we continued with the other contribution.

@s-heppner s-heppner closed this Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants