Project

General

Profile

Bug #35650

Malformed Debian repository

Added by Bernhard Suttner about 1 month ago. Updated 21 days ago.

Status:
Closed
Priority:
Normal
Category:
Host registration
Target version:
-
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

In Host registration -> advanced its possible to enter a debian repository which will then be written to /etc/apt/sources.list.d/foreman_registration.list
Currently, shell_escape is used. If you enter a debian repo like "deb https://example.com buster stable" the repo config look like

deb\ https://example.com\ buster\ stable

which is unusable.

Associated revisions

Revision debea6c1 (diff)
Added by Bernhard Suttner about 1 month ago

Fixes #35650 - write correct form of deb repo

In Host registration -> advanced its possible to enter a debian
repository which will then be written to
/etc/apt/sources.list.d/foreman_registration.list
If you enter a debian repo like "deb https://example.com buster stable",
shell_escape method would rewrite the string so that it looks like:

deb\ https://example.com\ buster\ stable

This repo config can not work. Use save_to_file to write the file.

History

#1 Updated by The Foreman Bot about 1 month ago

  • Assignee set to Bernhard Suttner
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9473 added

#2 Updated by The Foreman Bot about 1 month ago

  • Fixed in Releases 3.5.0 added

#3 Updated by Bernhard Suttner about 1 month ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Ewoud Kohl van Wijngaarden 21 days ago

  • Triaged changed from No to Yes
  • Category set to Host registration
  • Subject changed from Host registration: debian repository malformed to Malformed Debian repository

Also available in: Atom PDF