Offline trigger silently replaces an existing /system-update link from another tool (dnf5 offline)
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
- 76/100
Línea de trabajo
Empieza por lib/pk-offline-private.c, especialmente por pk_offline_auth_trigger_prepared_file() alrededor de la línea 252, donde el issue indica que se desvincula el trigger existente antes de crear un nuevo enlace simbólico. Revisa las pruebas del trigger offline y añade cobertura para un enlace /system-update existente que apunte fuera de PackageKit. Se considera terminado cuando el trigger se niegue a reemplazar ese enlace o advierta antes de hacerlo, y una prueba cubra ese comportamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
When /system-update already points to a dnf5 offline transaction, pkcon offline-trigger (or the D-Bus Trigger() call used by Discover) unlinks it and links it to /var/lib/PackageKit/prepared-update without looking at the old target. The dnf5 stage is dropped with no error or warning, and the next boot installs PackageKit's set instead.
Versions
PackageKit 1.4.0 (source read at the v1.4.0 tag), Fedora 44, dnf5 backend, dnf5 offline for the other stage.
Steps to reproduce
sudo dnf5 upgrade --offline -y.ls -l /system-updateshows-> /usr/lib/sysimage/libdnf5/offline.sudo pkcon -y update --only-downloadsudo pkcon offline-triggerexits 0.ls -l /system-updatenow shows-> /var/lib/PackageKit/prepared-update.- Reboot. PackageKit's offline service installs its own set; dnf5's offline service finds no trigger and exits.
Expected
The trigger refuses, or at least warns, when /system-update exists and is not PackageKit's own link, so the user knows a different prepared update is being replaced.
Actual
The other tool's link is replaced silently and Trigger() reports success.
Source
lib/pk-offline-private.c:252 in pk_offline_auth_trigger_prepared_file() calls g_unlink() on the trigger file and then symlink(), with no check of what the old link pointed to.
- Lenguaje dominante
- C
- Estrellas
- 360
- Forks
- 196
- Merge medio
- 21 h 50 min
- PR fusionados (30 d)
- 2
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 PackageKit/PackageKit
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
PackageKit/PackageKit#1027 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
PackageKit/PackageKit#1026 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
PackageKit/PackageKit#1000 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bashisms in /etc/profile.dAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
PackageKit/PackageKit#705 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
PackageKit/PackageKit#668 ·
Los mantenedores suelen responder en 1 día
Todos los issues de PackageKit/PackageKit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
JustAResearcher/gpu-unlock-ada#145 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
[Success Image Report]: GXDE OSAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
-
`PiecewiseChebyshevGate` produces incorrect target rotations outside the supplied breakpointsAbiertobug mod: circuit
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
area:tools type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
flac's CMake config is brokenAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
msys2/MINGW-packages#33356 · 1 comentario ·
Los mantenedores suelen responder en 1 día