`isValidOrigin` cannot handle origin string with a port number
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 45/100
Línea de trabajo
Locate isValidOrigin and inspect its current url.Parse-based validation, then compare it with the linked Static CT API specification. Update the validation so an origin such as 127.0.0.1:8000 is accepted without a scheme while invalid origins remain rejected, and run the relevant existing tests if available.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
An origin string like '127.0.0.1:8000' should be a valid submission prefix according to the specification. However, isValidOrigin returns an error, because it cannot parse it as a schema-less URL:
Can't initialize CT HTTP Server: newLog(): origin "127.0.0.1:8000" is not valid: can't parse origin as an URL: parse "127.0.0.1:8000": first path segment in URL cannot contain colon
Adding a schema prefix of course results in an error as well.
I think using url.Parse is not the best option for this validation check because it cannot recognize a URL that includes a non-standard port if the URL does not have a scheme.
- Lenguaje dominante
- Go
- Estrellas
- 41
- Forks
- 20
- Merge medio
- 1 d 21 h
- PR fusionados (30 d)
- 26
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de transparency-dev/tesseract
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
transparency-dev/tesseract#879 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
transparency-dev/tesseract#851 ·
Los mantenedores suelen responder en 1 día
-
Remove support for precert signing certificatesPosiblemente ocupada @phbnf la tomó hace 4 días. Abiertobug
transparency-dev/tesseract#995 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
internal/ct: return errors from NewLog instead of calling os.Exit(1)Posiblemente ocupada @phbnf la tomó hace 25 días. Abiertobug
transparency-dev/tesseract#976 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Migrate Tessera MTC Log and Mirror code to the TesseraCT repoQuizá libre de nuevo @phbnf la tomó hace 34 días y no hay ningún pull request abierto. Abiertoenhancement
transparency-dev/tesseract#962 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de transparency-dev/tesseract
Issues similares
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaudeAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
go good first issue test
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 2 días
-
bug github_actions good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
libr-forum/libr#77 ·
Los mantenedores suelen responder en 1 día
-
[UI] Guard webApis against undefined window in SSR environmentsPosiblemente ocupada @madhavzanwar la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día