You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Mathias (JIRA)" <ji...@apache.org> on 2011/03/16 14:17:29 UTC
[jira] Created: (BUILDR-573) upload via HTTP send PUT request with
incorrect Content-Type header
upload via HTTP send PUT request with incorrect Content-Type header
-------------------------------------------------------------------
Key: BUILDR-573
URL: https://issues.apache.org/jira/browse/BUILDR-573
Project: Buildr
Issue Type: Bug
Components: Core features
Affects Versions: 1.4.5
Reporter: Mathias
When uploading via HTTP buildr sends PUT requests with "Content-Type: application/x-www-form-urlencoded", which is incorrect and can lead to issues with some repository managers (e.g. Nexus 1.9).
The fix would be to either send no Content-Type header at all (in which case the server is allowed to guess the Content-Type) or send "application/octet-stream".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (BUILDR-573) upload via HTTP send PUT request
with incorrect Content-Type header
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060371#comment-13060371 ]
Hudson commented on BUILDR-573:
-------------------------------
Integrated in Buildr-ci-build #235 (See [https://builds.apache.org/job/Buildr-ci-build/235/])
> upload via HTTP send PUT request with incorrect Content-Type header
> -------------------------------------------------------------------
>
> Key: BUILDR-573
> URL: https://issues.apache.org/jira/browse/BUILDR-573
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.4.5
> Reporter: Mathias
> Fix For: 1.4.6
>
> Attachments: fix.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> When uploading via HTTP buildr sends PUT requests with "Content-Type: application/x-www-form-urlencoded", which is incorrect and can lead to issues with some repository managers (e.g. Nexus 1.9).
> The fix would be to either send no Content-Type header at all (in which case the server is allowed to guess the Content-Type) or send "application/octet-stream".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (BUILDR-573) upload via HTTP send PUT request with
incorrect Content-Type header
Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Boisvert resolved BUILDR-573.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.4.6
Patch applied. Thanks Mathias!
{code}
boisvert@smudge:~/git/buildr$ git commit -m "BUILDR-573 HTTP upload PUT request with incorrect Content-Type (Mathias Doenitz)" .
[trunk ab3dd3a] BUILDR-573 HTTP upload PUT request with incorrect Content-Type (Mathias Doenitz)
2 files changed, 2 insertions(+), 1 deletions(-)
boisvert@smudge:~/git/buildr$ git svn dcommit
Committing to https://svn.apache.org/repos/asf/buildr/trunk ...
M CHANGELOG
M lib/buildr/core/transports.rb
Committed r1082211
{code}
> upload via HTTP send PUT request with incorrect Content-Type header
> -------------------------------------------------------------------
>
> Key: BUILDR-573
> URL: https://issues.apache.org/jira/browse/BUILDR-573
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.4.5
> Reporter: Mathias
> Fix For: 1.4.6
>
> Attachments: fix.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> When uploading via HTTP buildr sends PUT requests with "Content-Type: application/x-www-form-urlencoded", which is incorrect and can lead to issues with some repository managers (e.g. Nexus 1.9).
> The fix would be to either send no Content-Type header at all (in which case the server is allowed to guess the Content-Type) or send "application/octet-stream".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (BUILDR-573) upload via HTTP send PUT request with
incorrect Content-Type header
Posted by "Mathias (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mathias updated BUILDR-573:
---------------------------
Attachment: fix.patch
Since the ruby HTTP implementation does not let you send PUT requests without Content-Type header we need to manually set a proper Content-Type header.
"application/octet-stream" seems to be good choice.
> upload via HTTP send PUT request with incorrect Content-Type header
> -------------------------------------------------------------------
>
> Key: BUILDR-573
> URL: https://issues.apache.org/jira/browse/BUILDR-573
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.4.5
> Reporter: Mathias
> Attachments: fix.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> When uploading via HTTP buildr sends PUT requests with "Content-Type: application/x-www-form-urlencoded", which is incorrect and can lead to issues with some repository managers (e.g. Nexus 1.9).
> The fix would be to either send no Content-Type header at all (in which case the server is allowed to guess the Content-Type) or send "application/octet-stream".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (BUILDR-573) upload via HTTP send PUT request with
incorrect Content-Type header
Posted by "Peter Donald (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BUILDR-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Donald closed BUILDR-573.
-------------------------------
> upload via HTTP send PUT request with incorrect Content-Type header
> -------------------------------------------------------------------
>
> Key: BUILDR-573
> URL: https://issues.apache.org/jira/browse/BUILDR-573
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.4.5
> Reporter: Mathias
> Fix For: 1.4.6
>
> Attachments: fix.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> When uploading via HTTP buildr sends PUT requests with "Content-Type: application/x-www-form-urlencoded", which is incorrect and can lead to issues with some repository managers (e.g. Nexus 1.9).
> The fix would be to either send no Content-Type header at all (in which case the server is allowed to guess the Content-Type) or send "application/octet-stream".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira