[Bug]: F-21 Overwriting a file within the same second keeps the old etag
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
- 78/100
Línea de trabajo
Empieza con apps/dav/lib/Connector/Sabre/File.php y la prueba unitaria que falla en Nextcloud 35.0.1. Reproduce tres sobrescrituras de un archivo local en el mismo segundo y sigue cómo se gestiona el etag almacenado en caché después de una carga DAV. Se considera terminado cuando cada sobrescritura que cambia el contenido recibe un etag nuevo, mientras que los cambios de nombre y otras operaciones que no modifican el contenido conservan los suyos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
F-21 · Overwriting a file within the same second keeps the old etag (upstream #63994)
| Severity | Medium (clients do not see the change, Text and sync clients keep stale content) |
| Component | apps/dav/lib/Connector/Sabre/File.php, local storage etag |
| Affects | 35.0.1 |
| Upstream | https://github.com/nextcloud/server/issues/63994 |
| Verified | Yes, on the test server and with a unit test that fails on 35.0.1 |
Measurement (local storage, three PUTs of 4 bytes within one second)
35.0.1: "ca1d3d5e…" "ca1d3d5e…" "ca1d3d5e…" same etag
patched: "784b5dca…" "23f010bc…" "6ac0fd38…" new etag each time
Root cause
The local storage derives the etag from mtime (seconds), inode, device and size. Same size, same
second and a reused inode give the same etag although the content changed.
Fix
After a DAV upload to an existing file, when the cache still has the previous etag, a new one is set.
Renames and other operations that do not change content keep their etag.
Steps to reproduce
see the top
Expected behavior
see the top
Nextcloud Server version
35
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
- Lenguaje dominante
- PHP
- Estrellas
- 37k
- Forks
- 5.3k
- Merge medio
- 2 d 6 h
- PR fusionados (30 d)
- 702
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni 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 nextcloud/server
-
0. Needs triage 35-feedback bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
0. Needs triage 35-feedback bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
0. Needs triage 35-feedback bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
0. Needs triage 35-feedback bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
0. Needs triage 35-feedback bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
Todos los issues de nextcloud/server
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
awslabs/aidlc-workflows#1879 ·
Los mantenedores suelen responder en 1 día
-
bug customer-reported
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MagnaCapax/PMSS#1011 ·
Los mantenedores suelen responder en 5 días
-
Talk Review
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
socallinuxexpo/scale-drupal#351 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
code4romania/cpc#47 ·
Los mantenedores suelen responder en 1 día
-
Bug Status: Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día