Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

author import: handle duplicate ids #1180

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

haarg
Copy link
Member

@haarg haarg commented Apr 8, 2024

When reading 00whois.xml, there can be cpanid elements containing duplicate id element values. This can happen when there is both a list and author entry for the same name. In these cases, the author entry is extraneous.

Rather than relying on XML::Simple's built in array to hash transformation (using id values), do the work ourselves so we can handle the duplicate id entries. Also configure XML::Simple to be more strict about how it parses.

When reading 00whois.xml, there can be cpanid elements containing
duplicate id element values. This can happen when there is both a list
and author entry for the same name. In these cases, the author entry is
extraneous.

Rather than relying on XML::Simple's built in array to hash
transformation (using id values), do the work ourselves so we can handle
the duplicate id entries. Also configure XML::Simple to be more strict
about how it parses.
Copy link
Contributor

@mickeyn mickeyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any records with <type>list</type> owning anything in 01modules - maybe the solution should just be sticking to records with <type>author</type> ?

@haarg
Copy link
Member Author

haarg commented Apr 10, 2024

Mailing list users are not able to upload files, but they are able to hold permissions.

@haarg haarg merged commit f449bfa into master Apr 11, 2024
2 checks passed
@haarg haarg deleted the haarg/fix-duplicate-author-id branch April 11, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants