pufferpanel icon indicating copy to clipboard operation
pufferpanel copied to clipboard

Extraction of files in the wrong place

Open FloX-Dev opened this issue 3 years ago • 3 comments

When using the feature to unzip a file directly from the panel, the unzipped files are systematically at the root of the FS. The error would come from the api side which would ignore the "destination" value.

Example:

  • Extracting the zip file: /node_modules/archive.zip
  • Request to the api: http://panel.exemple/proxy/daemon/server/XXXXX/extract/node_modules/archive.zip?destination=/node_modules
  • The files are located in the root instead of /node_modules/

FloX-Dev avatar Jan 15 '22 17:01 FloX-Dev

there are limits to a get request and a / in the value is one of them

LexFuturorum avatar Jan 15 '22 18:01 LexFuturorum

Even if the destination is url encoded, the behavior remains the same.

FloX-Dev avatar Jan 15 '22 18:01 FloX-Dev

Behavior is the same when using "Extract Archive" button within PufferPanel web UI.

karyeet avatar Jan 27 '22 18:01 karyeet