mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-26 05:58:27 +00:00

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 !