Bug 72271

Summary: Doctreeview does not allow ? characters in the kdeveloptoc file format
Product: [Applications] kdevelop Reporter: Amilcar do Carmo Lucas <a.lucas>
Component: doctreeviewAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.