mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-28 10:29:42 -04:00
document-export: Parse the AddNamed reply for --noexist
With --noexist, the opened file descriptor refers to the parent directory. The request correctly uses AddNamed, but is_directory makes the reply parser expect AddFull's array reply instead of AddNamed's single string. This produces a GVariant type mismatch and crashes the command. Only select the AddFull reply parser for directory exports without --noexist, matching the method used for the request.
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f