Opened 15 years ago

Last modified 14 years ago

#8 assigned defect

[Ubuntu] swatの日本語ページからヘルプへのリンクが間違っている

Reported by: mitty Owned by: mitty
Priority: minor Component: document
Keywords: Cc:

Description (last modified by mitty)

  • swat + samba-doc (3.0.28a-1ubuntu4.7)で、ブラウザの言語を「ja-JP」にしてswatの管理画面を開くと、ヘルプファイルへのリンクが間違っているためヘルプを開くことが出来ない。
  • 言語を「en-US」にすると当然表示は英語になるが、ヘルプファイルへのURLは正しく示され、ヘルプを見ることが出来る。
  • 問題のファイル => dpkg -S /usr/share/samba/swat/lang/ja/help/welcome.html
    swat: /usr/share/samba/swat/lang/ja/help/welcome.html
    

Attachments (2)

help-ja.png (73.4 KB) - added by mitty 15 years ago.
help-en.png (100.0 KB) - added by mitty 15 years ago.

Download all attachments as: .zip

Change History (10)

Changed 15 years ago by mitty

Changed 15 years ago by mitty

comment:1 Changed 15 years ago by mitty

  • Description modified (diff)

comment:2 Changed 15 years ago by mitty

  • Description modified (diff)
  • Summary changed from swatの日本語ページからヘルプへのリンクが間違っている to [Ubuntu] swatの日本語ページからヘルプへのリンクが間違っている

comment:3 Changed 15 years ago by mitty

  • 9.04 Jauntyでも直ってない模様
    • sha1sum locate welcome.html
      94ce473e5ee1477e61ee17cf11899fea106050bc  /usr/share/samba/swat/help/welcome.html
      24b125320282a93f2d92fd7102c58481490f0788  /usr/share/samba/swat/lang/ja/help/welcome.html
      6ff8d6fc8a2073ae4dd47c65b5086a92dedbd15a  /usr/share/samba/swat/lang/tr/help/welcome.html
      
    • hardy, jaunty でhashが一致
  • welcome.htmlからヘルプの(主な)リンク先になっている、/usr/share/doc/samba-doc/htmldocs/manpages/* はhardy -> jauntyでファイルが増え内容も変わっている模様
    • そもそもインストールされるSambaのバージョンが異なる
      hardy => 3.0.28a-1ubuntu4.8
      jaunty => 2:3.3.2-1ubuntu3
      

comment:4 Changed 15 years ago by mitty

  • http://wiki.samba.gr.jp/
    • 最新の(日本語)情報
    • samba-docの日本語版の最新もあるが、対応するSambaのバージョンが異なる

comment:5 follow-up: Changed 15 years ago by mitty

  • printers (http://localhost:901/printers) -> 「Printcap Name」のヘルプリンクは /usr/sbin/swat にバイナリで埋め込み?

comment:6 in reply to: ↑ 5 Changed 15 years ago by mitty

mitty への返信

  • printers (http://localhost:901/printers) -> 「Printcap Name」のヘルプリンクは /usr/sbin/swat にバイナリで埋め込み?
  • grep printcapname samba-3.0.28a/source/web/swat.c
            printf("<A HREF=\"/swat/help/smb.conf.5.html#printcapname\" target=\"docs\">%s</A>\n", _("Printcap Name"));
    
    • ハードコードされているので、html側での修正が不可能な模様

comment:7 Changed 15 years ago by mitty

  • apt-get source swat
  • samba-3.0.28a/source/web/swat.c:L584
    include_html("help/welcome.html");
    
    • samba-3.0.28a/source/web/swat.c:L130
      static int include_html(const char *fname)
      
      (snip)
      
      	fd = web_open(fname, O_RDONLY, 0);
      
      (snip)
      
    • samba-3.0.28a/source/web/neg_lang.c:L30
      int web_open(const char *fname, int flags, mode_t mode)
      {
      	char *p = NULL;
      	char *lang = lang_tdb_current();
      	int fd;
      	if (lang) {
      		asprintf(&p, "lang/%s/%s", lang, fname);
      		if (p) {
      			fd = sys_open(p, flags, mode);
      
      (snip)
      

comment:8 Changed 14 years ago by mitty

  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.