You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Rick McGuire (JIRA)" <ji...@apache.org> on 2008/06/18 13:18:45 UTC

[jira] Created: (GERONIMO-4125) Mismatch in predefined Internet headers with Sun implementation

Mismatch in predefined Internet headers with Sun implementation
---------------------------------------------------------------

                 Key: GERONIMO-4125
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4125
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
            Reporter: Rick McGuire
            Assignee: Rick McGuire
            Priority: Minor
             Fix For: 2.2


The javax.mail.internet.InternetHeaders class is supposed to create a pre-defined list of headers with null values with the intent of fixing the preferred order of the headers and also defining the preferred case.  The Geronimo pre-defined list does not match the Sun implementation.  There are missing headers, headers are at different positions, and the case of some headers is also different. 

The following small program can demonstrate the problem. 

import javax.mail.internet.InternetHeaders; 

public class DumpHeaders  
{
    static public void main(String [] args) {
        HeaderDumper dumper = new HeaderDumper(); 
        dumper.dump(); 
    }
    
    static public class HeaderDumper extends InternetHeaders {
        
        void dump() {
            for (int i = 0; i < headers.size(); i++) {
                InternetHeader header = (InternetHeader)headers.get(i); 
                System.out.println("Header at position " + i + " is " + header.getName()); 
            }
        }
    }
}


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-4125) Mismatch in predefined Internet headers with Sun implementation

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-4125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick McGuire closed GERONIMO-4125.
----------------------------------

    Resolution: Fixed

Committed revision 669135.

> Mismatch in predefined Internet headers with Sun implementation
> ---------------------------------------------------------------
>
>                 Key: GERONIMO-4125
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4125
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Rick McGuire
>            Assignee: Rick McGuire
>            Priority: Minor
>             Fix For: 2.2
>
>
> The javax.mail.internet.InternetHeaders class is supposed to create a pre-defined list of headers with null values with the intent of fixing the preferred order of the headers and also defining the preferred case.  The Geronimo pre-defined list does not match the Sun implementation.  There are missing headers, headers are at different positions, and the case of some headers is also different. 
> The following small program can demonstrate the problem. 
> import javax.mail.internet.InternetHeaders; 
> public class DumpHeaders  
> {
>     static public void main(String [] args) {
>         HeaderDumper dumper = new HeaderDumper(); 
>         dumper.dump(); 
>     }
>     
>     static public class HeaderDumper extends InternetHeaders {
>         
>         void dump() {
>             for (int i = 0; i < headers.size(); i++) {
>                 InternetHeader header = (InternetHeader)headers.get(i); 
>                 System.out.println("Header at position " + i + " is " + header.getName()); 
>             }
>         }
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.