Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DKroot opened this issue Apr 2, 2024 · 2 comments

Comments

@DKroot
Copy link

DKroot commented Apr 2, 2024

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.

@dcoraboeuf
Copy link
Contributor

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 !

@DKroot
Copy link
Author

DKroot commented May 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants