You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Chelliah Thirunavukkarasu (JIRA)" <ax...@ws.apache.org> on 2004/11/03 02:33:32 UTC

[jira] Created: (AXIS-1640) Implementation of setContent in AttachmentPart is wrong

Implementation of setContent in AttachmentPart is wrong
-------------------------------------------------------

         Key: AXIS-1640
         URL: http://nagoya.apache.org/jira/browse/AXIS-1640
     Project: Axis
        Type: Bug
  Components: SAAJ  
    Versions: 1.2RC1    
    Reporter: Chelliah Thirunavukkarasu


setContent does not set the contentType header in the MIME headers.
When setContent is called with an InputStream or a StreamSource,
the contentObject should not be set to the input parameter as the
the input parameter (the InputStream or StreamSource) has been consumed
by the ManagedMemoryDataSource object's constructor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1640) Implementation of setContent in AttachmentPart is wrong

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1640?page=history ]
     
Davanum Srinivas resolved AXIS-1640:
------------------------------------

    Resolution: Fixed

Applied.

thanks,
dims

> Implementation of setContent in AttachmentPart is wrong
> -------------------------------------------------------
>
>          Key: AXIS-1640
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1640
>      Project: Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2RC1
>     Reporter: Chelliah Thirunavukkarasu
>  Attachments: attachment.txt
>
> setContent does not set the contentType header in the MIME headers.
> When setContent is called with an InputStream or a StreamSource,
> the contentObject should not be set to the input parameter as the
> the input parameter (the InputStream or StreamSource) has been consumed
> by the ManagedMemoryDataSource object's constructor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (AXIS-1640) Implementation of setContent in AttachmentPart is wrong

Posted by "Chelliah Thirunavukkarasu (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1640?page=history ]

Chelliah Thirunavukkarasu updated AXIS-1640:
--------------------------------------------

    Attachment: attachment.txt

The attached file contains the patch to fix the problem.

> Implementation of setContent in AttachmentPart is wrong
> -------------------------------------------------------
>
>          Key: AXIS-1640
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1640
>      Project: Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2RC1
>     Reporter: Chelliah Thirunavukkarasu
>  Attachments: attachment.txt
>
> setContent does not set the contentType header in the MIME headers.
> When setContent is called with an InputStream or a StreamSource,
> the contentObject should not be set to the input parameter as the
> the input parameter (the InputStream or StreamSource) has been consumed
> by the ManagedMemoryDataSource object's constructor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-1640) Implementation of setContent in AttachmentPart is wrong

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1640?page=comments#action_54970 ]
     
Davanum Srinivas commented on AXIS-1640:
----------------------------------------

Chelliah,

Can you please come up with a patch? (you can find details on how to submit a patch on the wiki)

thanks,
dims

> Implementation of setContent in AttachmentPart is wrong
> -------------------------------------------------------
>
>          Key: AXIS-1640
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1640
>      Project: Axis
>         Type: Bug
>   Components: SAAJ
>     Versions: 1.2RC1
>     Reporter: Chelliah Thirunavukkarasu

>
> setContent does not set the contentType header in the MIME headers.
> When setContent is called with an InputStream or a StreamSource,
> the contentObject should not be set to the input parameter as the
> the input parameter (the InputStream or StreamSource) has been consumed
> by the ManagedMemoryDataSource object's constructor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira