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

Server Requirements: SS_PROTECTED_ASSETS_PATH="../.protected/" now resolves outside the project root

Abierto
#910 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php

Línea de trabajo

Start with en/00_Getting_Started/00_Server_Requirements.md, checking branch 5 line 142 and branch 6 line 127. Compare the documented path behavior for CMS 5/assets 2.x and CMS 6/assets 3.2.2, including the linked silverstripe-assets changes. Done means the examples and comments accurately describe the resolved location and warn about any upgrade-related move.

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

Descripción

Both branches (en/00_Getting_Started/00_Server_Requirements.md, branch 5 line 142, branch 6 line 127) show:

# This will be inside your project root, along-side the public/ directory
SS_PROTECTED_ASSETS_PATH="../.protected/"

Since silverstripe/assets 3.2.2 (silverstripe/silverstripe-assets#713, fixing #706), ProtectedAssetAdapter::findRoot() passes the env value through AssetAdapter::findRoot(), which resolves a leading ../ to dirname(BASE_PATH). So on current CMS 6 this example ends up one level above the project root, not inside it. Before 3.2.2 the raw value was used, which under PHP-FPM (cwd = public/) happened to land in the project root, matching the comment.

I think the CMS 6 example could use ./.protected/ (resolved against BASE_PATH), or keep ../ and update the comment. I'm less sure what the CMS 5 page should say, since assets 2.x still uses the raw value there. It may be worth a short note, as upgrading can quietly move the protected store.

Lenguaje dominante
Sin datos de lenguaje
Estrellas
7
Forks
74
Merge medio
1 d 14 min
PR fusionados (30 d)
6

Preparar el entorno

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 silverstripe/developer-docs

Todos los issues de silverstripe/developer-docs

Issues similares

Más issues de Documentation

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.