diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java index c98fdab69..7f45c7005 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultBrowseService.java @@ -207,7 +207,6 @@ public class DefaultBrowseService Collections.sort( sortedVersions, VersionComparator.getInstance() ); - return sortedVersions; } finally @@ -300,7 +299,9 @@ public class DefaultBrowseService if ( sharedModel.getDescription() != null && !StringUtils.equalsIgnoreCase( sharedModel.getDescription(), versionMetadata.getDescription() ) ) { - sharedModel.setDescription( null ); + sharedModel.setDescription( StringUtils.isNotEmpty( versionMetadata.getDescription() ) + ? versionMetadata.getDescription() + : "" ); } if ( sharedModel.getIssueManagement() != null && versionMetadata.getIssueManagement() != null