DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9525

HostSelector cannot select between more than 7 different hosts

           Summary: HostSelector cannot select between more than 7 different
                    hosts
           Product: Cocoon 2
           Version: 2.0.2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The sitemap component HostSelector cannot select between more than 7 different 
hosts.

The eight host in the list will always return a 404 page not found error.

Maybe this happens only if I try to select a different sub-sitemap with
the host selector as in the example below.

Example Sitemap Config:

<map:selector name="host" src="org.apache.cocoon.selection.HostSelector">
   <host name="host1" value="host1.domain.com"/>
   <host name="host2" value="host2.domain.com"/>
   ...
   <host name="host7" value="host7.domain.com"/>
   <host name="host8" value="host8.domain.com"/>
</map:selector>

<map:select type="host">
   <map:when test="host1">
      <map:mount uri-prefix="" src="/www/host1/sitemap/" check-reload="yes"/>
   </map:when>
   <map:when test="host2">
      <map:mount uri-prefix="" src="/www/host2/sitemap/" check-reload="yes"/>
   </map:when>
   ...
   <map:when test="host7">
      <map:mount uri-prefix="" src="/www/host7/sitemap/" check-reload="yes"/>
   </map:when>
   <!-- This host always returns Error 404 -->
   <map:when test="host8">
      <map:mount uri-prefix="" src="/www/host8/sitemap/" check-reload="yes"/>
   </map:when>
</map:select>

Because HostSelector extends NamedPatternsSelector this Bug could effect
also other sitemap functions.


Regards,

   Andi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to