Tags:
create new tag
, view all tags

Question

One of pages contains some jarfile attachments.

If a user tries to download one of these from the attachment area (the url would be something like)

http....myWeb/myTopic?rev=1;filename=myjar.jar

then the downloaded file is 'Invalid or Corrupt'

The jar file though is in fact ok as later tests prove

How can I fix this?

There is an entry for jar in the mime.types file

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RH7
Web server: apache
Perl version: 5.8
Client OS: Windows XP, Linux, Mac
Web Browser: IE, Firefox, Safari
Categories: Fatal error

-- PeterJones - 09 Jun 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

Is the configure entry pointing to the right mime file? Try also to use the directly the pub URL, e.g. use http://www.twiki.org/p/pub/MyWeb/MyTopic/myjar.jar= instead of %SCRIPTURL{viewfile}%/MyWeb/MyTopic?rev=1;filename=myjar.jar

-- PeterThoeny - 09 Jun 2007

The config points to the mime file in twiki/data and this has the following entries.

application/java-archive        jar
application/x-java-archive-diff jardiff

The users of the page (those who know of the problem) do as you have written above and they have made a link available in the page itself. This doesnt solve the attachement area problem though and does make the attachement entry for the jar file redundant, unless it is possible to change the way the attachments are made available by using your workaround instead of

http://www.twiki.org/cgi-bin/viewfile/MyWeb/MyTopic?rev=1;filename=myjar.jar

-- PeterJones - 11 Jun 2007

Sorry, closing this after more than 30 days of inactivity...

-- PeterThoeny - 10 Aug 2007

 
Change status to:
Topic revision: r4 - 2007-08-10 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.