History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-707
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Rostislav Hristov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Sesame

Authentication doesn't work for remote repositories

Created: 29/Mar/10 05:45 PM   Updated: 12/Apr/10 02:41 PM
Component/s: Console
Affects Version/s: 2.3.1
Fix Version/s: 2.3.2


 Description   
SES-695 brings a nice improvement but it still doesn't work as expected. Below is a simple patch that should resolve the problem.

Index: src/main/java/org/openrdf/console/Console.java
===================================================================
--- src/main/java/org/openrdf/console/Console.java (revision 10242)
+++ src/main/java/org/openrdf/console/Console.java (working copy)
@@ -524,7 +524,9 @@
  // Ping the server
  httpClient.getServerProtocol();
 
- return installNewManager(new RemoteRepositoryManager(url), url);
+ RemoteRepositoryManager manager = new RemoteRepositoryManager(url);
+ manager.setUsernameAndPassword(user, pass);
+ return installNewManager(manager, url);
  }
  catch (UnauthorizedException e) {
  if (user != null && pass != null) {


 All   Comments   Change History      Sort Order:
Comment by Arjohn Kampman [12/Apr/10 02:41 PM]
Patch applied with some modification for handilng <null> passwords. Please test.