Permanently deleting a page containing an invalid advanced query from the recycle bin causes the graph to crash
Nessuno ha ancora preso questa issue.
- #14000 di @tiensonqin — chiusa senza merge
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- database
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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!)
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 29
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di logseq/db-test
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Potential Dataloss: Deleting an entry from the property page's node table has no confirmation dialogForse già presa @tiensonqin l’ha presa 59 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Disabling Flashcards in Settings does not disable Flashcard shortcuts or tagsForse già presa @tiensonqin l’ha presa 60 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Tutte le issue di logseq/db-test
Issue simili
-
kind/enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
openminion/openminion#857 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
HTTP `batch.Send` returns nil and inserts no rows when the block does not encodeForse già presa @Indian-boult l’ha presa oggi. Apertabug queries
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ClickHouse/clickhouse-go#2155 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
MongoDB: shorten the index creation ERROR line and quiet the test output of grails-data-mongodb-coreAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
apache/grails-core#17129 ·
I maintainer di solito rispondono entro 1 giorno