The extension jar is not allowed.

Let us know how we are doing -
Post Reply
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

The extension jar is not allowed.

Post by hol.sten »

Why isn't it possible to attach a JAR file to a post? This is really annoying! I'm writing a post solving the regularly occurring "no office executable found!" and I want to provide an easyly usable JAR file. But the forum is preventing me from doing that :-(

Are JAR files that dangerous?
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: The extension jar is not allowed.

Post by DrewJensen »

Hi Hol.sten

Why not a *.jar file?

Good question - why not a .so file or a .oxt or a .exe?

Generally speaking there is the question of compiled versus source file uploads I suppose. Do I trust you, yes I do, do I trust user "foo" who uplaods file "moms_apple_pie.jar" to be a nice guy? I'm not sure.

I would like to hear what other folks think about this - compiled code question.
 Edit: Yes - I do understand .jar is a bit of a special case here...but before I just turn it on as a recoginized file format I would like to hear form others on the question 
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: The extension jar is not allowed.

Post by hol.sten »

Hi Drew,
DrewJensen wrote:
 Edit: Yes - I do understand .jar is a bit of a special case here...but before I just turn it on as a recoginized file format I would like to hear form others on the question 
Are you a mind reader? ;-)

Just a question: Is it possible to allow certain extensions for some members only?
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: The extension jar is not allowed.

Post by DrewJensen »

hol.sten wrote: Are you a mind reader? ;-)
two words - three daughters :lol:
Just a question: Is it possible to allow certain extensions for some members only?
Well, I just went into the cofiguratio area - there is no way to associate a file type permission to a member account or a group account - however we could:
  1. Create a special "File type group", say *.jar, *.oxt [ maybe "extensions" ]
  2. Set permissons on the "Filte type group" to only allow uploads to a specific forum [perhaps "Code snippet"]
  3. Create a "Special User Group" [ howabout "Contributers" ], and limit permission to upload to that same forum to that user group.
Now if we did it that way - *.jar, *.oxt would effetively be denied board wide
Normal user accounts could still post to "Code snippets" but not attach any files - not a problem if you are adding source code in line.
Attaching files to the Code Snippet forum then would require either membership in the "Contributers" group or having permissons of the group assigned to "Contributers"

The only real downside I can think of with that scheme is if a normal user account goes to make a post in "Code snippets" and wants to include a screen shot image file - they could not - without first requesting membership in the "Contributers". I suppose that is not much of a problem however.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: The extension jar is not allowed.

Post by Villeroy »

Just replace file extension "jar" with "zip" before upload and vice versa after download.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: The extension jar is not allowed.

Post by DrewJensen »

ha - I shold turn that off....LOL
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: The extension jar is not allowed.

Post by hol.sten »

Some people here want to create a new developer forum. But it is still not possible to attach a simple JAR file to a post. Not even for some members of this board...
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: The extension jar is not allowed.

Post by DrewJensen »

damnit - yes - that is my fault...doing it right now..
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
hol.sten
Volunteer
Posts: 495
Joined: Mon Oct 08, 2007 1:31 am
Location: Hamburg, Germany

Re: The extension jar is not allowed.

Post by hol.sten »

DrewJensen wrote:doing it right now..
Thank you very much!
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP
User avatar
DrewJensen
Volunteer
Posts: 1734
Joined: Sat Oct 06, 2007 9:01 pm
Location: Cumberland, MD - USA

Re: The extension jar is not allowed.

Post by DrewJensen »

OK - I created a new file group named 'extensions' it recognizes two file extensions: oxt and jar

Files from this group can be attached to the following boards:

Macros ( all )
Code snippet

The files will be marked with a fairly standard looking icon denoting them as executable.

The functionality should be available as of now.
Former member of The Document Foundation
Former member of Apache OpenOffice PMC
LibreOffice on Ubuntu 18.04
Post Reply