RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 919414 - zone2sqlite is sometime unable to create tables
Summary: zone2sqlite is sometime unable to create tables
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: bind
Version: 6.4
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Tomáš Hozza
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-08 12:06 UTC by GV
Modified: 2014-10-14 04:34 UTC (History)
1 user (show)

Fixed In Version: bind-9.8.2-0.26.rc1.el6
Doc Type: Bug Fix
Doc Text:
Cause: The zone2sqlite utility when calling sqlite commands was using formatting option that did not add single quotes around the outside of the argument. Consequence: As a consequence zone2sqlite was unable to perform operations on tables which name contained "." or "-" or started with digit. Fix: The zone2sqlite utility was fixed to use formatting option that adds a single quotes around the outside of the rgument, when calling sqlite commands. Result: As a result zone2sqlite ius now able to perform operations on tables which name contained "." or "-" or started with digit.
Clone Of:
Environment:
Last Closed: 2014-10-14 04:34:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix for this issue (1.68 KB, patch)
2013-05-02 13:58 UTC, Tomáš Hozza
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1373 0 normal SHIPPED_LIVE bind bug fix and enhancement update 2014-10-14 01:11:10 UTC

Description GV 2013-03-08 12:06:35 UTC
Description of problem:
zone2sqlite cannot create a table when table name contain ".", "-" or start with a digit, etc.

Version-Release number of selected component (if applicable):
bind-9.8.2-0.17.rc1.el6.3.x86_64
bind-sdb-9.8.2-0.17.rc1.el6.3.x86_64

How reproducible:
# zone2sqlite
usage: zone2sqlite <zone> <zonefile> <dbfile> <dbtable>

# zone2sqlite domaintest.org m:domaintest.org zones.db domaintest.org
Connecting to 'zones.db'
DROP TABLE domaintest.org 
CREATE TABLE domaintest.org (NAME TEXT, TTL INTEGER, RDTYPE TEXT, RDATA TEXT) 
CREATE TABLE domaintest.org failed: unknown database domaintest

# zone2sqlite 0-255.1.168.192.in-addr.arpa m:0-255.1.168.192.in-addr.arpa zones.db 0-255.1.168.192.in-addr.arpa
Connecting to 'zones.db'
DROP TABLE 0-255.1.168.192.in-addr.arpa 
CREATE TABLE 0-255.1.168.192.in-addr.arpa (NAME TEXT, TTL INTEGER, RDTYPE TEXT, RDATA TEXT) 
CREATE TABLE 0-255.1.168.192.in-addr.arpa failed: near "0": syntax error

# zone2sqlite 0-255.1.168.192.in-addr.arpa m:0-255.1.168.192.in-addr.arpa zones.db rev_0-255.1.168.192.in-addr.arpa
Connecting to 'zones.db'
DROP TABLE rev_0-255.1.168.192.in-addr.arpa 
CREATE TABLE rev_0-255.1.168.192.in-addr.arpa (NAME TEXT, TTL INTEGER, RDTYPE TEXT, RDATA TEXT) 
CREATE TABLE rev_0-255.1.168.192.in-addr.arpa failed: near "-": syntax error

Additional info:
1. Table can be created with dummy names and renamed after.
2. named-sdb seems to work fine with table names containing ".", "-" or starting with a digit.
3. Fixing the bug is trivial.

Comment 2 Tomáš Hozza 2013-05-02 13:58:43 UTC
Created attachment 742712 [details]
Fix for this issue

Comment 7 errata-xmlrpc 2014-10-14 04:34:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1373.html


Note You need to log in before you can comment on or make changes to this bug.