Skip to content

Fix: Lost schema of S3 URL. #1893

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

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

Conversation

fukumoto-ts
Copy link

@fukumoto-ts fukumoto-ts commented Feb 20, 2025

close: #1892

Fix the erroneous change in #1762.

@fukumoto-ts fukumoto-ts force-pushed the feature/fix-lost-s3-url-schema branch from d5c2f64 to ca9b8e6 Compare February 20, 2025 10:12
@fukumoto-ts fukumoto-ts force-pushed the feature/fix-lost-s3-url-schema branch from ca9b8e6 to 9060402 Compare February 20, 2025 10:12
@fukumoto-ts fukumoto-ts changed the title fix: default scheme settings to https Fix: Lost schema of S3 URL. Feb 20, 2025
@jackycute jackycute requested a review from Copilot April 18, 2025 03:07
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where the S3 URL lost its HTTPS scheme when a region was specified other than "us-east-1".

  • Ensures that the S3 endpoint always includes the "https://" scheme.
  • Targets the URL construction in the S3 image upload function.
Comments suppressed due to low confidence (1)

lib/imageRouter/s3.js:54

  • The updated endpoint now correctly includes the HTTPS scheme for non-'us-east-1' regions, which fixes the lost schema error. Please verify that similar URL constructions in related modules consistently implement the HTTPS protocol.
s3Endpoint = `https://s3-${config.s3.region}.amazonaws.com`

Copy link
Member

@jackycute jackycute left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @fukumoto-ts

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.

Lost schema of S3 URL.
2 participants