Tags:
create new tag
view all tags

Question

A user has attached XML files to a topic. He can not access these XML files correctly as XML files.

Unlike PDF and other attachments XML ones are returned as "Type: text/plain" on GET request to an HTTP client.

Why is this?

I see in bin/configure the lines

# XML confuses IE, so strip it out. This is fixed in CGI.pm 3.06.
$hdr =~ s/^<\?xml.*?>//s;
print CGI::header('text/html'), $hdr;

Is there a known issue and can I do anything about it?

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH linux
Web server: apache
Perl version: 5.008
Client OS: Windows XP , linux
Web Browser: IE , Firefox
Categories: Missing functionality

-- PeterJones - 15 Jan 2007

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I am not sure what the referenced code does. What you are probably missing is the proper MIME mapping. Check the MIME settings in the file {MimeTypesFileName} in configure points to.

-- PeterThoeny - 16 Jan 2007

I changed the config to use the apache server's mime.types and we now get good results. Thanks

-- PeterJones - 16 Jan 2007

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-01-16 - PeterJones
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.