Debian Bug report logs - #908376
dictd: Support OPTION MIME problem

version graph

Package: dictd; Maintainer for dictd is Robert Luberda <[email protected]>; Source for dictd is src:dictd (PTS, buildd, popcon).

Reported by: Michael Vlasenko <[email protected]>

Date: Sun, 9 Sep 2018 11:06:02 UTC

Severity: important

Found in version dictd/1.12.1+dfsg-8

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Robert Luberda <[email protected]>:
Bug#908376; Package dictd. (Sun, 09 Sep 2018 11:06:05 GMT) (full text, mbox, link).


Acknowledgement sent to Michael Vlasenko <[email protected]>:
New Bug report received and forwarded. Copy sent to Robert Luberda <[email protected]>. (Sun, 09 Sep 2018 11:06:05 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Michael Vlasenko <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: dictd: Support OPTION MIME problem
Date: Sun, 09 Sep 2018 11:02:02 +0000
[Message part 1 (text/plain, inline)]
Package: dictd
Version: 1.12.1+dfsg-8
Severity: important

Dear Maintainer,

I created a dictionary that consists of two modules: with Plain Text
content (heb-eng_strong.tar.gz) and with MIME content
(heb-eng_strong__mime.tar.gz).
I configured dictd to support OPTION MIME in this dictionary.
I make a search query:

    dict -M 01647

I get the answer:

    From [*]:

    Content-type: text/html; charset=utf-8
    Content-transfer-encoding: 8bit

    ...

Should be:

    From Online Bible Hebrew Lexicon (English) [heb-eng_strong]:

    Content-type: text/html; charset=utf-8
    Content-transfer-encoding: 8bit

    ...

It's possible that this is some kind of bug in dictd.

How to reproduce the problem

This problem can be reproduced only when used together with the
dictionary heb-rus_strong, consisting of two modules: with
Plain Text content (heb-rus_strong.tar.gz) and with
MIME content (heb-rus_strong__mime.tar.gz).
Add the following lines to the Database section of the dictd.conf
file (located in the /etc/dictd directory):

database heb-rus_strong__nomime  {
  data  /usr/share/dictd/dictmime/heb-rus_strong.dict.dz
  index /usr/share/dictd/dictmime/heb-rus_strong.index

  invisible # optional
}
database heb-rus_strong__mime  {
  data  /usr/share/dictd/dictmime/heb-rus_strong__mime.dict.dz
  index /usr/share/dictd/dictmime/heb-rus_strong__mime.index

  invisible # optional
}
database_mime heb-rus_strong {
  dbname_mime   "heb-rus_strong__mime"
  dbname_nomime "heb-rus_strong__nomime"
}

database heb-eng_strong__nomime {
  data  /usr/share/dictd/dictmime/heb-eng_strong.dict.dz
  index /usr/share/dictd/dictmime/heb-eng_strong.index

  invisible # optional
}
database heb-eng_strong__mime {
  data  /usr/share/dictd/dictmime/heb-eng_strong__mime.dict.dz
  index /usr/share/dictd/dictmime/heb-eng_strong__mime.index
  
  invisible # optional
}
database_mime heb-eng_strong {
  dbname_mime   "heb-eng_strong__mime"
  dbname_nomime "heb-eng_strong__nomime"
}

After you finish editing the dictd.conf configuration file, you must restart the
DICT server:

    sudo /etc/init.d/dictd restart

After server overloading:

    dict -M 01647

Instead of 

    From Online Bible Hebrew Lexicon (English) [heb-eng_strong]:

you will see:

    From [*]:

... Michael

-- System Information:
Debian Release: 9.5
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-042stab129.1 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE=C (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dictd depends on:
ii  adduser                3.115
ii  debconf [debconf-2.0]  1.5.61
ii  dictzip                1.12.1+dfsg-8
ii  libc6                  2.24-11+deb9u3
ii  libmaa4                1.4.2-1
ii  lsb-base               9.20161125
ii  netbase                5.4
ii  ucf                    3.0036
ii  update-inetd           4.47
ii  zlib1g                 1:1.2.8.dfsg-5

Versions of packages dictd recommends:
ii  dict [dict-client]  1.12.1+dfsg-8

Versions of packages dictd suggests:
pn  dict-foldoc                    <none>
pn  dict-gcide | dictd-dictionary  <none>
pn  dict-jargon                    <none>
pn  dict-wn                        <none>

-- Configuration Files:
/etc/dictd/dictd.conf changed:
global {
}
access {
allow localhost
allow 127.0.0.1
allow inetd
allow *
}
include /etc/dictd/dictd_mime.list				    
include /var/lib/dictd/db.list
database_exit
include /etc/dictd/dictd_virtual.list


-- debconf information:
  dictd/run_mode: daemon
[heb-rus_strong__mime.tar.gz (application/gzip, attachment)]
[heb-eng_strong__mime.tar.gz (application/gzip, attachment)]
[heb-eng_strong.tar.gz (application/gzip, attachment)]
[heb-rus_strong.tar.gz (application/gzip, attachment)]

Information forwarded to [email protected], Robert Luberda <[email protected]>:
Bug#908376; Package dictd. (Fri, 14 Sep 2018 04:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Власенко Михаил Викторович <[email protected]>:
Extra info received and forwarded to list. Copy sent to Robert Luberda <[email protected]>. (Fri, 14 Sep 2018 04:51:03 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Власенко Михаил Викторович <[email protected]>
To: <[email protected]>
Subject: Re: Bug#908376: dictd: Support OPTION MIME problem
Date: Fri, 14 Sep 2018 10:47:42 +0600
I failed to reflect the essence of the problem in the subject. I should note the following: tests showed that the problem is not related to the use of the OPTION MIME Command. When you use MATCH Command, if there is a response from the second dictionary of type database_mime, it is not displayed correctly: the code name of the dictionary looks like *.
For example:

$ dict -f -M -s word -m 01647
localhost       2628    heb-rus_strong  01647
localhost       2628    *       01647

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Fri May 16 15:41:36 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.