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: [M3-7305] - Correct Object Storage folder links containing special characters #10822

Conversation

skulpok-akamai
Copy link
Contributor

@skulpok-akamai skulpok-akamai commented Aug 23, 2024

Description 📝

Object Storage bucket folders containing URL special characters could not be opened. After the change, their links navigate to a correct location.

Changes 🔄

List any change relevant to the reviewer.

  • Special characters in folder links are URI-encoded.

Target release date 🗓️

Any release

Preview 📷

Before After
image image

How to test 🧪

  1. Create a folder containing special characters, e.g:

s3cmd put ./Test.txt s3://sk-test/dir+with+pluses/Test.txt

  1. Open that folder in Cloud Manager

When opened, the folder should contain Test.txt file.

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@skulpok-akamai skulpok-akamai requested a review from a team as a code owner August 23, 2024 12:13
@skulpok-akamai skulpok-akamai requested review from cpathipa and AzureLatte and removed request for a team August 23, 2024 12:13
Comment on lines 22 to 23
const { getByRole } = render(
wrapWithTheme(
Copy link
Member

Choose a reason for hiding this comment

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

You could use renderWithTheme here or even wrapWithTableBody in this case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I replaced it with wrapWithTableBody.

@bnussman-akamai bnussman-akamai added the Object Storage deals with Object Storage label Aug 23, 2024
Copy link
Contributor

@jaalah-akamai jaalah-akamai left a comment

Choose a reason for hiding this comment

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

Thank you for fix 👍

@jaalah-akamai jaalah-akamai added the Approved Multiple approvals and ready to merge! label Aug 23, 2024
Copy link

github-actions bot commented Aug 23, 2024

Coverage Report:
Base Coverage: 82.73%
Current Coverage: 82.87%

@skulpok-akamai
Copy link
Contributor Author

I just noticed that I have a wrong import for TableRowProps. I'm doing a commit with the corrected import.

@@ -6,10 +6,9 @@ import { Link } from 'react-router-dom';
import { EntityIcon } from 'src/components/EntityIcon/EntityIcon';
import { Hidden } from 'src/components/Hidden';
import { TableCell } from 'src/components/TableCell';
import { TableRow } from 'src/components/TableRow';
import { TableRow, TableRowProps } from 'src/components/TableRow';
Copy link
Contributor

Choose a reason for hiding this comment

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

import { TableRow } from 'src/components/TableRow';
import type { TableRowProps } from 'src/components/TableRow';

Copy link
Contributor

@cpathipa cpathipa left a comment

Choose a reason for hiding this comment

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

Thank you for addressing the feedback, approved pending tests.

@bnussman-akamai bnussman-akamai changed the title fix: [7305] - Correct Object Storage folder links containing special characters. fix: [M3-7305] - Correct Object Storage folder links containing special characters Aug 28, 2024
@mjac0bs mjac0bs added the Bug Fixes for regressions or bugs label Aug 28, 2024
@abailly-akamai abailly-akamai force-pushed the feature/M3-7305-directory-links-with-special-characters branch from a6a3357 to 5a22cfd Compare August 28, 2024 19:24
@abailly-akamai abailly-akamai merged commit a169d1d into linode:develop Aug 29, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Bug Fixes for regressions or bugs Object Storage deals with Object Storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants