Repository navigation
system/sync/top: send False of user and asversion as an empty string - #114
Open
toolonghere wants to merge 1 commit into
Open
toolonghere wants to merge 1 commit into
toolonghere wants to merge 1 commit into
Conversation
grommunio-sync records user and asversion as False for a request that has no authentication. The response schema accepts only a string for user, and a string or a number for asversion. Thus, 1 such record in the window causes HTTP 500 for the full response. Send False as an empty string. admin-web shows these fields with `|| ''`, thus the display does not change. References: grommunio#91
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type: bug
This pull request contains 1 change in
endpoints/system/misc.py. The live sync view operates correctly when a request without authentication is in the window. It closes #91.The problem
userandasversionasFalsefor a request that has no authentication. The response schema accepts only a string foruser, and a string or a number forasversion.#91 gives more data and a
curlcommand that shows the problem.The change
syncTop()sendsFalseinuserandasversionas an empty string. The schema does not change.booleanto the schema. admin-web sorts these columns withlocaleCompare, and a boolean value causes an error in the sort.|| '', thus the display does not change.Test
On a test system with admin-api 1.21.53, I sent 1 ActiveSync request without an
Authorizationheader (HTTP 401). Then I sentGET /api/v1/system/sync/top:userandasversionas empty strings.I prepared this change with an AI assistant (Claude). I examined the code and each changed line, and I did the test on a test system. Antigravity (Google's AI assistant) did an inspection of it.