Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Sometimes the browser downloads the dashboard's HTML file rather than showing it

Abierto
#2,205 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
google-cloud
Área
cloud

Línea de trabajo

Comienza rastreando cómo se publica la index.html del dashboard en la URL de Google Cloud Storage que se muestra en el informe. Compara los metadatos almacenados para las respuestas application/octet-stream y text/html; se considera terminado cuando el dashboard se renderiza de forma consistente en un navegador con el tipo de contenido correcto.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

p3

Sometimes the browser downloads the dashboard's HTML file rather than showing it

Screen Shot 2021-08-27 at 14 36 21

Why?

HTTP headers when there's this problem

suztomo-macbookpro44% curl --output /dev/null -vvv https://storage.googleapis.com/cloud-opensource-java-dashboard/com.google.cloud/libraries-bom/snapshot/index.html 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 142.250.72.112...
* TCP_NODELAY set
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to storage.googleapis.com (142.250.72.112) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [236 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [96 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2772 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [116 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [37 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
{ [1 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-ECDSA-CHACHA20-POLY1305
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=Mountain View; O=Google LLC; CN=*.storage.googleapis.com
*  start date: Aug 16 02:55:40 2021 GMT
*  expire date: Nov  8 02:55:39 2021 GMT
*  subjectAltName: host "storage.googleapis.com" matched cert's "*.googleapis.com"
*  issuer: C=US; O=Google Trust Services; CN=GTS CA 1O1
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7ff2b100e800)
> GET /cloud-opensource-java-dashboard/com.google.cloud/libraries-bom/snapshot/index.html HTTP/2
> Host: storage.googleapis.com
> User-Agent: curl/7.64.1
> Accept: */*
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 200 
< x-guploader-uploadid: ADPycdv2BTpSFkoujZFeZTXRLmHyygD8slT5TaciF87z3mGnWjBNZMWLP6YdUrHRNxrIb9FbOKPtMeD5JIpxakGGmxuDBPuL8Q
< expires: Fri, 27 Aug 2021 19:35:08 GMT
< date: Fri, 27 Aug 2021 18:35:08 GMT
< last-modified: Thu, 26 Aug 2021 19:43:57 GMT
< etag: "2bf4ae7f7825ba1d6edce3f2b45f1104"
< x-goog-generation: 1630007037320026
< x-goog-metageneration: 1
< x-goog-stored-content-encoding: identity
< x-goog-stored-content-length: 43760
< content-type: application/octet-stream
< x-goog-hash: crc32c=3c9obQ==
< x-goog-hash: md5=K/Suf3gluh1u3OPytF8RBA==
< x-goog-storage-class: MULTI_REGIONAL
< accept-ranges: bytes
< content-length: 43760
< server: UploadServer
< age: 116
< cache-control: public, max-age=3600
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":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"
< 
{ [1388 bytes data]
100 43760  100 43760    0     0   368k      0 --:--:-- --:--:-- --:--:--  368k
* Connection #0 to host storage.googleapis.com left intact
* Closing connection 0

It's showing content-type: application/octet-stream.

HTTP headers when it succeeds

suztomo-macbookpro44% curl --output /dev/null -vvv https://storage.googleapis.com/cloud-opensource-java-dashboard/com.google.cloud/libraries-bom/snapshot/index.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 142.250.65.240...
* TCP_NODELAY set
* Connected to storage.googleapis.com (142.250.65.240) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/cert.pem
  CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
} [236 bytes data]
* TLSv1.2 (IN), TLS handshake, Server hello (2):
{ [96 bytes data]
* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [2772 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [115 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [37 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
{ [1 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-ECDSA-CHACHA20-POLY1305
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=California; L=Mountain View; O=Google LLC; CN=*.storage.googleapis.com
*  start date: Aug 16 02:55:40 2021 GMT
*  expire date: Nov  8 02:55:39 2021 GMT
*  subjectAltName: host "storage.googleapis.com" matched cert's "*.googleapis.com"
*  issuer: C=US; O=Google Trust Services; CN=GTS CA 1O1
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x7fa444008200)
> GET /cloud-opensource-java-dashboard/com.google.cloud/libraries-bom/snapshot/index.html HTTP/2
> Host: storage.googleapis.com
> User-Agent: curl/7.64.1
> Accept: */*
> 
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 200 
< x-guploader-uploadid: ADPycdvFYKDINevd81oayagsW1gGxjaf1Q6JvUi24cZUE3vo63fKrqgfh0LJBMyiFEwrDK2pkPRLtsDYCqTWz6ZXyGk-I5DkEg
< expires: Thu, 02 Sep 2021 15:36:31 GMT
< date: Thu, 02 Sep 2021 14:36:31 GMT
< last-modified: Wed, 01 Sep 2021 19:48:12 GMT
< etag: "9c1406767725e953a6fd7ffc6da234ed"
< x-goog-generation: 1630525692134068
< x-goog-metageneration: 2
< x-goog-stored-content-encoding: identity
< x-goog-stored-content-length: 43760
< content-type: text/html
< x-goog-hash: crc32c=rZGkcw==
< x-goog-hash: md5=nBQGdncl6VOm/X/8baI07Q==
< x-goog-storage-class: MULTI_REGIONAL
< accept-ranges: bytes
< content-length: 43760
< server: UploadServer
< cache-control: public, max-age=3600
< age: 42
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":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"
< 
{ [1388 bytes data]
100 43760  100 43760    0     0   534k      0 --:--:-- --:--:-- --:--:--  534k
* Connection #0 to host storage.googleapis.com left intact
* Closing connection 0

It has content-type: text/html.

Lenguaje dominante
Java
Estrellas
163
Forks
81
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de GoogleCloudPlatform/cloud-opensource-java

Todos los issues de GoogleCloudPlatform/cloud-opensource-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.