hi,

mimetype detection in in org.apache.cocoon.components.source.impl.SitemapSource seems not correct. field mimetype is initialized in init(). at this time the mimetype is not valid (always null). i modified getMimeType() (see below).

found in 2.1.7 , 2.1.8 , 2.1.11 , 2.2.0

public String getMimeType() {
   if (this.mimeType == null) {
       if (this.environment != null)
           this.mimeType = this.environment.getContentType();
       else if (this.redirectSource != null)
           this.mimeType = this.redirectSource.getMimeType();
   }
   return this.mimeType;
}

regards
thomas

begin:vcard
fn:Thomas Markus
n:Markus;Thomas
org:proventis GmbH
adr:;;Zimmerstr. 79-80;Berlin;Berlin;10117;Germany
email;internet:t.mar...@proventis.net
tel;work:+49 30 29 36 399 22
x-mozilla-html:FALSE
url:http://www.proventis.net
version:2.1
end:vcard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to