Skip to content

IllegalStateException: Duplicate key in SubscriptionItem when items share the same name #538

@saschaszott

Description

@saschaszott

Bug Description

The SubscriptionItem class throws an IllegalStateException: Duplicate key when processing items with identical names.

The error occurs in:

.collect(toMap(Item::getName, item -> buildUrlForItem(item.getHandle())))

The Collectors.toMap() method does not allow duplicate keys by default. When multiple items share the same name (= value of dc.title), the collector throws an IllegalStateException.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions