harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Hindess (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6561) [classlib][luni]HttpConnection should not throw a IOException if the server return 401 but does not provide a WWW-Authenticate header.
Date Mon, 28 Jun 2010 09:39:49 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883084#action_12883084
] 

Mark Hindess commented on HARMONY-6561:
---------------------------------------

I wonder if the test might not be quicker if you started one server (rather than three) and
just used the request URI to determine the behaviour for the response... i.e. the tests could
request:

  http://localhost:port/norealm
  http://localhost:port/realm
  http://localhost:port/realm

respectively and the handler could return the response (with or without the realm) based on
the request URI rather than having separate servers/handler classes?





> [classlib][luni]HttpConnection should not throw a IOException if the server return 401
but does not provide a WWW-Authenticate header.
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6561
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6561
>             Project: Harmony
>          Issue Type: Bug
>         Environment: All
>            Reporter: Li Jing Qin
>         Attachments: HARMONY-6561.diff, HARMONY-6561.v2.diff
>
>
> When the server return a 401(UNAUTHORIZED), it supposed to provide a "WWW-Authenticate"
header. But if it is not provided, we should not throw a IOException. See the details in testcase.

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


Mime
View raw message