Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix bad registry errors, fixes #432 and #433 #439

Merged
merged 1 commit into from Jun 18, 2021

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Jun 18, 2021

Fix a possible write a long string in case where the string length is <= 1024 but the encoded size if > 1024.
Truncate long strings and warn instead of throwing an exception which could lead to an invalid registry.
Since the registry data is invalid, the content is emptied to guarantee the next registry will work correct.
This fix is based on #435 provided by @lanmaoxinqing, many thanks !

Fix a possible write a long string in case where the string length is <= 1024 but the encoded size if > 1024.
Truncate long strings and warn instead of throwing an exception which could lead to an invalid registry.
Since the registry data is invalid, the content is emptied to guarantee the next registry will work correct.
This fix is based on apache#435 provided by @lanmaoxinqing, many thanks !
@gnodet gnodet changed the title Temp Workaround to recovery from bad ergistry, fixes #432 and #433 Attempt to fix bad registry errors, fixes #432 and #433 Jun 18, 2021
@gnodet gnodet merged commit 3c83652 into apache:master Jun 18, 2021
@gnodet gnodet deleted the i432 branch December 9, 2021 12:47
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.

None yet

2 participants