Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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