Row rules on grants: accepted for a type they are not registered for, and ignored beside core permissions
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- csharp
Línea de trabajo
Start with RoleService.ValidateGrant, EffectiveGrant.Applies, and EffectivePermissions.Allows, then review spec 4.8 and the tests for GET /permissions and GET /permissions/row-rules. Add coverage for a row rule registered to a different content type, a row rule beside a non-content permission, and grants limited to another site. Done means the behavior follows the spec and each case has a test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found in the review of #3440 (#3417). Both fail closed or stay within what the caller may hand out; neither is an escalation.
- A row rule is accepted for a content type it is not registered for.
RoleService.ValidateGrantchecksrules.Has(name)only.POST /roleswith{ "permission": "content.person.update", "constraints": { "rowRule": "news" } }, wherenewsis registered forpagealone, answers 201. The grant then matches no row (EffectivePermissions.RuleFilteranswers null), without a word. The admin can avoid it withtypeNamesofGET /permissions/row-rules; an API caller gets noFCMS3042. - A row rule on a grant of a permission that is not a content permission is accepted and ignored.
EffectiveGrant.AppliesandEffectivePermissions.Allowsdo not look atRowRule, so a role with*orusers.manageandrowRule: "own-entries"holds the core permissions in full. Spec 4.8 gives a resource-limited*no core permission and says nothing for row rules. - No test reads
GET /permissionsorGET /permissions/row-ruleswith a grant limited to another site. Every test uses an instance-wide role, so a change of the site passed to the check would pass them all.
Wanted
- A grant whose row rule is not registered for the content type of its permission is refused with
FCMS3042, with a test. - A decision, in spec 4.8, on a row rule beside a permission that is not a content permission: refused, or a grant that gives no core permission, with a test.
- The two tests with a grant limited to another site.
Bundle 27.
- Lenguaje dominante
- C#
- Estrellas
- 567
- Forks
- 107
- Merge medio
- 1 h 19 min
- PR fusionados (30 d)
- 353
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 fluentcms/FluentCMS
-
area:localization plugin type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:storage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
area:testing type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
area:api area:publishing type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
fluentcms/FluentCMS#3473 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:storage plugin type:bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de fluentcms/FluentCMS
Issues similares
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimePosiblemente ocupada @Goldziher la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsAbiertobug sev-5 vm
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
area:jobads-cv bug FE mvp P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
klasolsson81/jobbliggaren#2271 ·
Los mantenedores suelen responder en 1 día