Permanently deleting a page containing an invalid advanced query from the recycle bin causes the graph to crash
Nadie ha tomado este issue todavía.
- #14000 de @tiensonqin — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- database
Línea de trabajo
Start by reproducing the crash with the incomplete advanced query ({} or { :query [] }) in a DB graph, then deleting that page from the Recycle bin. The payload names no files or tests, so locate the recycle-bin permanent-delete path and find where it loads or renders the page's blocks. Done means permanent deletion succeeds without the graph crashing, and a regression test covers deleting a page that holds an invalid advanced query.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Search first
- I searched and no similar issues were found
What Happened?
I encountered this issue when trying to permanently delete a problematic page (loading the page causes the graph to crash) from the Recycle bin since I wanted to reuse the old name without logseq automatically repopulating the newly created page with the problematic contents.
The page in question contained an incomplete advanced query that causes the graph to crash whenever the page is opened (see my comment on the related issue )
Reproduce the Bug
- Create a DB graph (happens on an existing one too)
- create a new page and add an 'Advanced query" to a block inside it
- Inside the code block for the query type either of the following:
{}or{ :query [] }and click onto an empty block - Observe the graph crashing with the "Something went wrong" page requiring a restart.
- Delete the page with the problematic query, sending it to the 'Recycle' as Logseq calls it.
- Delete the page from the Recycling bin.
- Observe the graph crashing with the "Something went wrong" page requiring a restart.
- Upon restart the page is deleted and the graph works perfectly.
Expected Behavior
A deleted page (that causes a graph to crash) is deleted and subsequently moved to the "Recycle" as Logseq calls it, should be deletable form the recycling bin without it being loaded in such a way as to cause a crash.
Screenshots
Example of an advanced query code body that casues the crash the moment I click of of the query.
Desktop or Mobile Platform Information
EDIT: App version: 2.0.2
OS: Fedora Linux 44
Desktop Environment: KDE version 6.8.2
CPU: Intel® Core™ i7-10700K
GPU: AMD Radeon RX 6700 XT
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.
- I'm willing to submit a PR (Thank you!)
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 29
- Forks
- 2
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 logseq/db-test
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Potential Dataloss: Deleting an entry from the property page's node table has no confirmation dialogPosiblemente ocupada @tiensonqin la tomó hace 59 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Disabling Flashcards in Settings does not disable Flashcard shortcuts or tagsPosiblemente ocupada @tiensonqin la tomó hace 60 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Todos los issues de logseq/db-test
Issues similares
-
bug external-issue to-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
[Bug]: legacy_json_to_doc crashes on persisted docs with "relationships": nullPosiblemente ocupada @Harsh23Kashyap la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
run-llama/llama_index#24392 ·
Los mantenedores suelen responder en 2 días
-
kind/enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
openminion/openminion#857 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día