Project

General

Profile

Actions

Bug #16964

open

URL tables cannot import content from ``tgz`` file URLs

Added by Jim Pingle 3 days ago. Updated about 14 hours ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Aliases / Tables
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
26.07
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

The parsing of content from tgz archive URLs into URL table aliases is broken in several ways:

  • It does not create a directory before trying to use it for tar output
  • It is not reading the list of files to import from the directory where tar places the files
  • It tries to write output to a file with the same name as the extraction directory, so creating the file fails
  • It does not ensure the files in the archive are regular files before reading their content
  • It tries to read with fread not fgets and ends up with an empty file as a result
  • It does not clean up the directory where content was extracted when complete

Most of these bugs were not being hit because it failed earlier in the process, so they were moot, however, they all need to be fixed before functionality can be restored.

Reported by: @lujiefsi


Files

16964.patch (1.92 KB) 16964.patch Jim Pingle, 07/21/2026 07:46 PM
16964-b.patch (1.9 KB) 16964-b.patch Jim Pingle, 07/23/2026 06:35 PM
Actions #1

Updated by Jim Pingle 3 days ago

  • File 16964.patch 16964.patch added
  • Description updated (diff)
  • Status changed from Confirmed to Feedback
  • % Done changed from 0 to 100

Fixed in commit 4ed2393677617e3fa024c88715e440cd3ec35b14

All items have been addressed, importing from a tgz URL now works.

Patch is attached.

Actions #2

Updated by Jim Pingle 3 days ago

  • Description updated (diff)
Actions #3

Updated by Jim Pingle about 14 hours ago

CE 2.8.1 needs a slightly different patch as some functions are different in that version.

Actions

Also available in: Atom PDF