fix: support "default" as name for the default group ID in artifact references
@@ -839,6 +839,7 @@ public class GroupsResourceImpl implements GroupsResource {
String artifactType = ArtifactTypeUtil.determineArtifactType(content, xRegistryArtifactType, ct, factory.getAllArtifactTypes());
final List<ArtifactReferenceDto> referencesAsDtos = references.stream()
+ .map(r -> { r.setGroupId(gidOrNull(r.getGroupId())); return r; }) // .peek(...) may be optimized away
.map(V2ApiUtil::referenceToDto)
.collect(Collectors.toList());
