h-tadagawa / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

List of Content-type values is incomplete #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Choose the Body tab
2. Click the Edit Content-type and charset button 
3. Attempt to select one of the Atom content types defined in RFCs 4287 and
5023, for example, application/atom+xml. 

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Version 2.1 on CentOS 5 Linux

Please provide any additional information below.
I'm not sure where the list came from, but not even application/xml is
there. The authoritative list is at
http://www.iana.org/assignments/media-types/index.html, but since it's
constantly changing, I would suggest the the UI also allow the user to
enter a value that's not in the list.

Thanks!

Original issue reported on code.google.com by janc...@constantcontact.com on 12 Mar 2008 at 2:17

GoogleCodeExporter commented 8 years ago
Oops! I had included this from an Apache HTTPD distribution. For the time being,
please edit the file:

org\wiztools\restclient\mime.types

inside the Jar file to add the values you need. This is the quickest fix. I 
will make
it editable in future release.

Original comment by subwiz on 12 Mar 2008 at 4:39

GoogleCodeExporter commented 8 years ago
Revision 168 has the fix.

Original comment by subwiz on 12 Mar 2008 at 5:38

GoogleCodeExporter commented 8 years ago
Thanks, got it. BTW are you aware that the current trunk only builds with JDK 
1.6?

Also, I've attached a new mime.types file that I put together from the IANA 
site.
Feel free to use it if you want.

Jim

Original comment by janc...@constantcontact.com on 12 Mar 2008 at 6:37

Attachments:

GoogleCodeExporter commented 8 years ago
Hey Jim, it is so nice of you to provide the updated `mime.types' file. I will
incorporate it.

Yeah, the code compatibility is maintained at Java 6, while we are maintaining
runtime compatibility with Java 5. The only dependency for Java 6 is we are 
using the
@Override annotation for methods implemented from interfaces (this is not 
supported
in Java 5--use of this annotation is supported only for overridden methods in 
Java
5). We find this usage so useful in understanding the code that we continue to 
have
this dependency. We had a discussion on it in our list too:

http://groups.google.com/group/rest-client/browse_thread/thread/f46333fc91a8e9f3

Original comment by subwiz on 13 Mar 2008 at 5:58

GoogleCodeExporter commented 8 years ago
Revision 169 has the updated mime.types file.

Original comment by subwiz on 13 Mar 2008 at 4:10