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 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.

Is the configure entry pointing to the right mime file? Try also to use the directly the pub URL, e.g. use https://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

https://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:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-08-10 - PeterThoeny
 
  • 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.