GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.06k stars 407 forks source link

[Bug]: Custom S3 Provider settings with Region Missing Bug #1297

Closed Cineray closed 7 months ago

Cineray commented 7 months ago

Operating system

Windows 10

Publii version

0.44.0

Post editor

None

Bug description

Hi, i have setting my host in custom S3 Provider (Tencent)

Everything just be find before version 0.44.0

However, there is new error came out in version 0.44.0 like:

Error! Application was able to connect with your server but was unable to store files,

Please check file permission on your server : Region is missing.

but there is not region setting in custom S3 provider.

image

image

Steps to reproduce

Just use custom S3 Provider

Relevant log output

No response

dziudek commented 7 months ago

@Cineray - thank you for spotting this - I will try to fix it today as we want to release Publii v.0.44.1

dziudek commented 7 months ago

@Cineray - as I have read - now AWS SDK v3 requires region always so in v.0.44.1 we will show region text field

Cineray commented 7 months ago

Hi,

I have update it to 0.44.1. and fill the region setting. it still shows error as region is missing.

image

image

Cineray commented 7 months ago

@dziudek is my server of new AWS SDK v3 compatibly problem? have you try it on any custom s3 provider.

please check it out. thank you.

dziudek commented 7 months ago

@Cineray - please save the config anyway and try to sync - for me it is working with Clever Cloud. The error is connected with wrong implementation of the test connection - I will fix it in v.0.44.2

Please also try to add https:// to your endpoint - for me endpoint without it was not working and returned invalid URL error in the logs

Cineray commented 7 months ago

@Cineray - please save the config anyway and try to sync - for me it is working with Clever Cloud. The error is connected with wrong implementation of the test connection - I will fix it in v.0.44.2

Please also try to add https:// to your endpoint - for me endpoint without it was not working and returned invalid URL error in the logs

@dziudek that's cool, those two solution is working. thank you. Are you consider to make https as default prefix by the way?

dziudek commented 7 months ago

@Cineray - I have added a code which will add https:// if the S3 endpoint value does not contain "://" :)