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

[jira] Created: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

boundary attribute for multipart/related content does not have surrounding quotes
---------------------------------------------------------------------------------

                 Key: GERONIMO-4134
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: mail
    Affects Versions: 2.1.1
            Reporter: Stefano Bagnara
            Assignee: Rick McGuire


Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
Content-Type: multipart/related; 
	boundary=------------050206010102010306090507
instead of what we expected (and what sun's implementation give us):
Content-Type: multipart/related;
  boundary="------------050206010102010306090507"

the original message has this one:
Content-Type: multipart/related;
  boundary="------------050206010102010306090507"

I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
For sure it is different from what we get from sun implementation.

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


[jira] Commented: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606781#action_12606781 ] 

Rick McGuire commented on GERONIMO-4134:
----------------------------------------

I think I may have a fix for this, but not having a test case to recreate it at the moment, I can't be sure.  Could you grab the latest private build I staged out the people.apache.org and verify?

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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


[jira] Commented: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

Posted by "Stefano Bagnara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606812#action_12606812 ] 

Stefano Bagnara commented on GERONIMO-4134:
-------------------------------------------

You don't have permission to access /~rickmcguire/javamail/geronimo-javamail_1.4_mail-1.5-SNAPSHOT.jar on this server.

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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


[jira] Commented: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

Posted by "Stefano Bagnara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606846#action_12606846 ] 

Stefano Bagnara commented on GERONIMO-4134:
-------------------------------------------

No, this still does not work.

the test is this one:
http://svn.apache.org/repos/asf/james/server/trunk/phoenix-deployment/src/test/org/apache/james/transport/mailets/AddFooterTest.java

testAddFooterMultipartRelated fails because of missing quotes (it also fails because the mail is reformatted to a different width, but this is a test issue).

testAddFooterMultipartAlternative also fails, but this is again a test issue:
it expects:
----
Subject: test
Content-Type: multipart/alternative;
    boundary="--==--"
MIME-Version: 1.0
----
and receive
---
Subject: test
Content-Type: multipart/alternative; boundary="--==--"
MIME-Version: 1.0
-----
so, sun's was using a newline while geronimo put it inline.. 

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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


[jira] Commented: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606816#action_12606816 ] 

Rick McGuire commented on GERONIMO-4134:
----------------------------------------

ok, try again. 

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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


[jira] Commented: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606791#action_12606791 ] 

Rick McGuire commented on GERONIMO-4134:
----------------------------------------

Hmmm, the cygwin scp did something very strange.  This should be correct now. 

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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


[jira] Resolved: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

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

Rick McGuire resolved GERONIMO-4134.
------------------------------------

    Resolution: Fixed

Committed revision 670051.  spec checkin
Committed revision 670052.  provider checkin 

I was able to modify the addFooter program I was using for the code page issue to reproduce this problem, so I'm fairly certain that I have this fixed now.  The multipart add footer test will likely fail  because it appears there's an issue in the quoted-printable encoder with dealing with an "=" immediately before a line break.  But that's a task for Monday.  I'll go ahead and open the Jira against that myself since I have a simple program that demonstates the problem.  

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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


[jira] Commented: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

Posted by "Stefano Bagnara (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606783#action_12606783 ] 

Stefano Bagnara commented on GERONIMO-4134:
-------------------------------------------

I see a weird name in staged jars:
[   ] geronimo-activation_1.1_spec-1.0.3-SNAPSHOT.jar                               17-Jun-2008 16:06   34K  
[   ] geronimo-javamail_1.4_mail-1.5-SNAPSHOT.jar                                   20-Jun-2008 14:07  429K  
[   ] geronimo-javamail_1.4_mail\target\geronimo-javamail_1.4_mail-1.5-SNAPSHOT.jar 20

And I cannot download the file with the backslash that I guess is the latest.

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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


[jira] Commented: (GERONIMO-4134) boundary attribute for multipart/related content does not have surrounding quotes

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-4134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606773#action_12606773 ] 

Rick McGuire commented on GERONIMO-4134:
----------------------------------------

Can you give me a pointer to the test case file?  I'd like to see if I can recreate this in isolation.  My attempts at writing simpler tests have not shown any behavioral differences yet. 

> boundary attribute for multipart/related content does not have surrounding quotes
> ---------------------------------------------------------------------------------
>
>                 Key: GERONIMO-4134
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-4134
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 2.1.1
>            Reporter: Stefano Bagnara
>            Assignee: Rick McGuire
>
> Reading from stream a multipart/related mail, adding some text as footer, outputting it to a stream result in this header:
> Content-Type: multipart/related; 
> 	boundary=------------050206010102010306090507
> instead of what we expected (and what sun's implementation give us):
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> the original message has this one:
> Content-Type: multipart/related;
>   boundary="------------050206010102010306090507"
> I don't know if this is bad or ok, but I've seen geronimo to use quotes for a different test where I'm using multipart/alternative instead of multipart/related...
> For sure it is different from what we get from sun implementation.

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