versioning icon indicating copy to clipboard operation
versioning copied to clipboard

`svn: E170001: Authentication required` occurs when credentials are not specified on a valid SVN checkout directory

Open DKroot opened this issue 1 year ago • 2 comments

I'm trying to set up versioning on a project using SVN. The project directory can be updated with svn update. If the SVN auth cache is empty, svn CLI prompts to accept invalid HTTPS certs, then prompts for credentials and caches them. After that, no prompts occur for svn update.

So, versioning should work without specifying credentials, per the docs, right?

If credentials are not provided, the versioning plug-in will rely on the default Subversion configuration for the current user.

The actual result is the svn: E170001: Authentication required error.

DKroot avatar Apr 02 '24 18:04 DKroot

Hi,

I'm not sure to understand the scenario here. If the credentials are not provided, the versioning plugin won't be able to ask them from the user, not like when using the command line.

Can you detail a bit more the scenario of your issue, that'd help me a lot, thanks !

dcoraboeuf avatar Apr 08 '24 09:04 dcoraboeuf

OK, here is the test case:

  1. The project is in SVN, and can be updated. The credentials are cached by SVN.
  2. Add versioning:
plugins {
  id 'net.nemerosa.versioning' version '2.8.+'
}

versioning {
   scm = 'svn'
}
  1. Print the revision info:
tasks.register('vars') {
  doLast {
    println '\n## SCM revision ##\n'
    println versioning.info.full
  }
}
  1. Run: ./gradlew vars

Expected: Display the revision info (per the docs, it should work when credentials are not provided). Actual: svn: E170001: Authentication required

DKroot avatar May 15 '24 23:05 DKroot