Skip to content

Conversation

bp-cos
Copy link
Contributor

@bp-cos bp-cos commented Jul 24, 2025

Purpose

Users were experiencing errors when either a %2[fF] or / was at the end of the viewOnlyToken

Summary of Changes

Added a regex to remove %2[fF] or / from the end of the viewOnlyToken.

Also change a miscellaneous console.log to be console.info to make it easier to find and remove console.logs while debugging.

Screenshot(s)

N/A

Side Effects

There could be other characters at the end of the viewOnlyToken added by the user or a rogue url parser that is not covered in this fix.

QA Notes

Super hard to duplicate. I wasn't able to. Good Luck

@bp-cos bp-cos requested a review from adlius July 24, 2025 18:17
@adlius adlius merged commit 6741472 into CenterForOpenScience:feature/pbs-25-12 Jul 29, 2025
9 checks passed
adlius added a commit that referenced this pull request Aug 1, 2025
* Added fix to break a race-condition error

* Refactor to use the abstracted method

* [eng-8159] Allow collections without metadata to be submitted

* Added a new banner for all OSF preprints

* Updates for the PR

* Added an enabled true/false to prevent a race condition

* Removed the unnecessary @enabled pass through variable

* Forgot to save the template

* Updates to fix the viewOnlyToken in cases there is a / or %2fF at the end (#2603)

[ENG-8174] Extra Characters (%2F) in View-Only Files Tab URL Prevent Page from Loading

* [eng-8492] Update to detach the metrics call to preprint metric failures from preventing the preprint detail page from loading (#2604)

* Update to detach the metrics call to preprint metric failures from preventing the preprint detail page from loading

* This is much better

* Removed unneeded file

* apiMetrics -> apiMeta (#2605)

* fix again (#2606)

---------

Co-authored-by: Brian Pilati <[email protected]>
Co-authored-by: Lord Business <[email protected]>
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.

2 participants