[Mono-bugs] [Bug 570194] New: XmlSiteMapProvider threats Sitemap nodes with different queries as nodes with equal URLs

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 12 19:29:47 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=570194

http://bugzilla.novell.com/show_bug.cgi?id=570194#c0


           Summary: XmlSiteMapProvider threats Sitemap nodes with
                    different queries as nodes with equal URLs
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: abatishchev at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.1.7)
Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

If a Sitemap file contains two or more nodes with same URLs which differs only
in queries System.Web.XmlSiteMapProvider threats such node with equal URLs and
throws an exception:

Multiple nodes with the same URL '/Default.aspx?mode=test' were found.
StaticSiteMapProvider requires that sitemap nodes have unique URLs.

Reproducible: Always

Steps to Reproduce:
1. Create a sitemap with nodes described. E.g.:

<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
    <siteMapNode url="Default.aspx" title="Main">
        <siteMapNode url="Default.aspx?mode=foo" title="Foo" />
        <siteMapNode url="Default.aspx?mode=bar" title="Bar" />
    </siteMapNode>
</siteMap>

2. Open web site
3. Read exception's stack trace
Actual Results:  
Multiple nodes with the same URL '/Default.aspx?mode=expenditure' were found.
StaticSiteMapProvider requires that sitemap nodes have unique URLs.

Description: HTTP 500. Error processing request.

Stack Trace:

System.InvalidOperationException: Multiple nodes with the same URL
'/Default.aspx?mode=expenditure' were found. StaticSiteMapProvider requires
that sitemap nodes have unique URLs.
  at System.Web.StaticSiteMapProvider.AddNode (System.Web.SiteMapNode node,
System.Web.SiteMapNode parentNode) [0x00000] 
  at System.Web.XmlSiteMapProvider.AddNodeNoCheck (System.Web.SiteMapNode node,
System.Web.SiteMapNode parentNode) [0x00000] 
  at System.Web.XmlSiteMapProvider.BuildSiteMapRecursive (System.Xml.XmlNode
xmlNode, System.Web.SiteMapNode parent) [0x00000] 
  at System.Web.XmlSiteMapProvider.BuildSiteMapRecursive (System.Xml.XmlNode
xmlNode, System.Web.SiteMapNode parent) [0x00000] 
  at System.Web.XmlSiteMapProvider.BuildSiteMap () [0x00000] 
  at System.Web.StaticSiteMapProvider.FindSiteMapNode (System.String rawUrl)
[0x00000] 
  at System.Web.XmlSiteMapProvider.FindSiteMapNode (System.String rawUrl)
[0x00000] 

Expected Results:  
All should works fine.
/Default.aspx be shown in SiteMapPath as root with title 'Main',
/Default.aspx?type=foo as 'Main > Foo',
/Default.aspx?type=bar as 'Main > Bar'.
As it is in Visual Studio 2008 Web Developer Server, IIS 6 and IIS 7.

Mono from trunk, r149430

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list