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

[fix] prevent creating a phantom BaseFileNode with Guid #10092

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aaxelb
Copy link
Contributor

@aaxelb aaxelb commented Oct 26, 2022

Purpose

if the ember files detail page is waffled on, then visiting /<guid>/files/osfstorage/<...> (where <...> is not a real file id) creates a phantom OsfStorageFileNode with its own guid (e.g. https://api.osf.io/v2/files/yp4su/ )

i don't see any significant consequences to this, but it's not good.

Changes

wait to create a guid and redirect to the file detail page until after verifying the file exists.

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

wait to create a guid and redirect to the file detail page
until after verifying the file exists.
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.

1 participant