Hi,
I came across an inconsistent behaviour in the implementation of AdminConnection and StardogRepository when they connect to a URL with a default port 80.
For example, if Stardog is running at
http://somehost/ and listens to port 80, passing the URL
http://somehost/ to AdminConnection will work, but StardogRepository will fail with a misleading error message "
org.openrdf.repository.RepositoryException:
Unable to obtain a connection to the Stardog database. The configuration could
be incorrect or the database not available"
What I have discovered is when the port is not explicitly specified, StardogRepository will silently default to port 5820 while AdminConnection defaults to port 80. This explains why StardogRepository fails while AdminConnection works. The fix currently is to make the port explicit
http://somehost:80 , and both StardogRepository and AdminConnection will work.
Is this difference in behaviour on purpose, or is this a bug that needs to be fixed ?