Skip to content

Conversation

@futa-ikeda
Copy link
Contributor

@futa-ikeda futa-ikeda commented Aug 29, 2022

Purpose

  • Fix special characters (&, > and <) in node-license copyright holder field

Summary of Changes

  • Wrap copyright holder in fixSpecialChars in the node-license transform

Screenshot(s)

  • After loading a draft registration that had a special character in the copyright holder field:
    image

Side Effects

  • None

QA Notes

  • The copyright holder in the API will still have special characters encoded as &amp;, &gt;, and &lt;.

@coveralls
Copy link

coveralls commented Aug 29, 2022

Pull Request Test Coverage Report for Build 3016271093

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.009%) to 71.302%

Totals Coverage Status
Change from base Build 2972931429: -0.009%
Covered Lines: 5385
Relevant Lines: 7338

💛 - Coveralls

Copy link
Contributor

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

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

Seems legit

@futa-ikeda futa-ikeda added this to the 22.9.0 milestone Aug 31, 2022
Copy link
Contributor

@adlius adlius left a comment

Choose a reason for hiding this comment

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

If I am understanding this correctly, this only affects how that field is shown on the FE, but won't do anything to change the content of the PATCH request when we update the field, correct?

@futa-ikeda
Copy link
Contributor Author

If I am understanding this correctly, this only affects how that field is shown on the FE, but won't do anything to change the content of the PATCH request when we update the field, correct?

Yea, the PATCH request payload will have &, but the response from the api will still be &amp;

@brianjgeiger brianjgeiger merged commit 69785a8 into CenterForOpenScience:develop Sep 9, 2022
chth0n1x pushed a commit to chth0n1x/ember-osf-web that referenced this pull request Feb 1, 2023
…nce#1641)

-   Ticket: [ENG-2792]

## Purpose
- Fix special characters (`&`, `>` and `<`) in node-license copyright holder field

## Summary of Changes
- Wrap copyright holder in `fixSpecialChars` in the `node-license` transform
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.

4 participants