docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

CF_SERVER_MOD with URL to a zip file fails claiming it's not a zip

Open itzg opened this issue 3 years ago • 2 comments

https://discord.com/channels/660567679458869252/660571171732848651/1044741888625881228

itzg avatar Nov 22 '22 23:11 itzg

Looks like it might be something to address in the filename resolution in mc-image-helper

mc-image-helper get -o /data --output-filename --skip-existing https://storage.cloud.google.com/sandbox-amarie-deathnote/po2.zip

Resulted in /data/identifier

itzg avatar Nov 22 '22 23:11 itzg

As noted in Discord, the location is actually protected by authentication:

Image

but the response came back 200 OK with HTML content.

Noting the debug logs:

[mc-image-helper] 19:07:06.013 DEBUG : Getting uri=https://storage.cloud.google.com/sandbox-amarie-deathnote/po2.zip
[mc-image-helper] 19:07:06.023 DEBUG : Executing GET /sandbox-amarie-deathnote/po2.zip with headers=[]
[mc-image-helper] 19:07:06.042 DEBUG : Intercepting request uri=https://storage.cloud.google.com/sandbox-amarie-deathnote/po2.zip
[mc-image-helper] 19:07:06.815 DEBUG : Post-request capturing redirectLocations=[https://accounts.google.com/ServiceLogin?service=cds&passive=1209600&continue=https://storage.cloud.google.com/sandbox-amarie-deathnote/po2.zip&followup=https://storage.cloud.google.com/sandbox-amarie-deathnote/po2.zip, https://accounts.google.com/v3/signin/identifier?dsh=S2063606939%3A1669165631322285&continue=https%3A%2F%2Fstorage.cloud.google.com%2Fsandbox-amarie-deathnote%2Fpo2.zip&followup=https%3A%2F%2Fstorage.cloud.google.com%2Fsandbox-amarie-deathnote%2Fpo2.zip&passive=1209600&service=cds&flowName=WebLiteSignIn&flowEntry=ServiceLogin&ifkv=ARgdvAvxlSxguAV4lOtVJfzNgaas1lSy8NQA9EjzN62DSvCbXtVzjViY1vrJn7uOZlYzphQZfUQZuQ]
[mc-image-helper] 19:07:06.818 DEBUG : Response: status=200, reason=OK, headers=[Content-Type: text/html; charset=utf-8, X-Frame-Options: DENY, Vary: Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, x-auto-login: realm=com.google&args=service%3Dcds%26continue%3Dhttps://storage.cloud.google.com/sandbox-amarie-deathnote/po2.zip, x-ua-compatible: IE=edge, Cache-Control: no-cache, no-store, max-age=0, must-revalidate, Pragma: no-cache, Expires: Mon, 01 Jan 1990 00:00:00 GMT, Date: Wed, 23 Nov 2022 01:07:11 GMT, Strict-Transport-Security: max-age=31536000; includeSubDomains, Report-To: {"group":"AccountsSignInUi","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/AccountsSignInUi/external"}]}, Cross-Origin-Resource-Policy: same-site, Cross-Origin-Opener-Policy-Report-Only: same-origin; report-to="AccountsSignInUi", Content-Security-Policy: script-src 'report-sample' 'nonce-tRgcmsH4SDGA1TIm_AkDTA' 'unsafe-inline';object-src 'none';base-uri 'self';report-uri /v3/signin/_/AccountsSignInUi/cspreport;worker-src 'self', Content-Security-Policy: require-trusted-types-for 'script';report-uri /v3/signin/_/AccountsSignInUi/cspreport, Permissions-Policy: ch-ua-arch=*, ch-ua-bitness=*, ch-ua-full-version=*, ch-ua-full-version-list=*, ch-ua-model=*, ch-ua-wow64=*, ch-ua-platform=*, ch-ua-platform-version=*, Accept-CH: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Model, Sec-CH-UA-WoW64, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version, Server: ESF, X-XSS-Protection: 0, X-Content-Type-Options: nosniff, Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43", Transfer-Encoding: chunked]
[mc-image-helper] 19:07:06.819 DEBUG : Deriving filename from response path=/v3/signin/identifier
[mc-image-helper] 19:07:06.819 DEBUG : Writing response content to path=D:\Users\me\Downloads\identifier
D:\Users\me\Downloads\identifier

itzg avatar Nov 23 '22 01:11 itzg