metha icon indicating copy to clipboard operation
metha copied to clipboard

two different resumptionTokens?

Open ACz-UniBi opened this issue 4 years ago • 1 comments

Dear,

I notice that in the result xml's were two different resumption tokens:

...</record><resumptionToken completeListSize="56" cursor="" expirationDate=""></resumptionToken></ListRecords><ListSets><resumptionToken completeListSize="" cursor="" expirationDate=""></resumptionToken></ListSets></Response>

  • one under ListRecords element and
  • an empty one in ListSets

It seems, that the empty one under ListSets was added by 'metha-sync' and not in the repository response.

Observe anyone else similar?

Best, Andreas

ACz-UniBi avatar May 17 '21 13:05 ACz-UniBi

This is an effect of the implementation, which currently wraps any response type into a single struct. It has not caused too much problems in the past, although I admit, that it could be implemented in a better way. I think the thinking behind the single struct was to just a have a single response type.

I leave this issue open as a refactoring reminder.

miku avatar Oct 04 '21 13:10 miku