Bug 72271 - Doctreeview does not allow ? characters in the kdeveloptoc file format
Summary: Doctreeview does not allow ? characters in the kdeveloptoc file format
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: doctreeview (show other bugs)
Version: git master
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-09 21:59 UTC by Amilcar do Carmo Lucas
Modified: 2004-05-08 00:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amilcar do Carmo Lucas 2004-01-09 21:59:24 UTC
Version:           unknown (using KDE 3.1.3)
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:          Linux (i686) release 2.4.18-64GB-SMP

For example the file languages/haskell/doc/haskell_bugs_ghc.toc file :

<!DOCTYPE kdeveloptoc>
<kdeveloptoc>
<title>Haskell bugs (ghc)</title>
<base href="http://sourceforge.net/"/>
<tocsect1 name="Query" url="tracker/?group_id=8032&atid=108032">
</tocsect1>
</kdeveloptoc>

Does not work.
Comment 1 Stephan Kulow 2004-01-10 13:15:20 UTC
that looks pretty XML to me - then it's &amp; - the ? should be fine though
Comment 2 Amilcar do Carmo Lucas 2004-01-11 16:59:08 UTC
Uppsss

Thanks coolo that solved the problem.

But the issue with the ? presists.

It works fine in
languages/haskell/doc/haskell_bugs_ghc.toc
but it fails in 

languages/haskell/doc/python_bugs.toc

<!DOCTYPE kdeveloptoc>
<kdeveloptoc>
<title>Python bugs</title>
<base href="http://groups.google.com/"/>
<tocsect1 name="Query" url="groups?group=comp.lang.python">
</tocsect1>
</kdeveloptoc>

Comment 3 Stephan Kulow 2004-01-11 17:21:13 UTC
how do you create the URL? If you call setPath with the addition, then of course this can't work as the ? will be encoded.
Comment 4 Amilcar do Carmo Lucas 2004-01-11 17:40:35 UTC
Subject: Re:  Doctreeview does not allow ? characters in the kdeveloptoc
 file format

I've tracked this down to


parts/doctreeview/doctreeviewwidget.cpp:507
            QString url = childEl.attribute("url");

and
parts/doctreeview/doctreeviewwidget.cpp:514
                item->setFileName(base + url);

yes the url is built with adition. Should I use append instead?





Comment 5 Alexander Dymo 2004-05-08 00:10:26 UTC
Fixed in new documentation plugin.