-
Notifications
You must be signed in to change notification settings - Fork 179
HTTPSession.setCredentialsProvider(AuthScope.ANY, ) always fails on null argument exception #277
Comments
perhaps AuthScope.ANY should be prohibited in this context, so is correct behavior? I have replaced AuthScope.ANY with actual endpoint in TestRestrictDataset unit test for now. |
Now the "bad password tests" pass unit tests, but TestRestrictDataset.testSuccess() does not correctly pass the credentials, or perhaps doesnt respond to the security challenge (?) No Principle is seen in the servlet code (see DatasetManager.resourceAuthorized() in latest 5.0 PR). This code works from a browser, so I suspect something wrong with HTTPSession. ?? |
If memory serves, this is a known problem (to me). I think the problem |
This is tested on localhost, so no funny dependencies on our production server |
My error, I see you are referring to TestRestrictDataset instead of TestAuth. |
OK, things are more complicated that i realized.
1a) Credentials not being preemptively set, but if they were, could avoid 1 or 2 extra round-trips.
this looks like a showstopper for 5.0, so high priority. Im wondering if the same problem is happening in 4.6? bottom line: credential caching needs clarification and probably fixing. |
its possible/likely that i still dont understand exactly whats happening.... |
unit test is thredds.tds.TestRestrictDataset in it module
The text was updated successfully, but these errors were encountered: