jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven SCM
  • SCM-409

Windows path length limitations can be overcome by feeding an absolute path to SVN (checkout command)

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.2
  • Component/s: maven-scm-provider-svn
  • Labels:
    None
  • Environment:
    Windows OS
  • Complexity:
    Intermediate

Description

When calling Subversion with relative paths there is a limit of 255 characters to the path length. If you call Subversion with an absolute path that no longer applies and you now have access to 32K chars. I have tried this myself and it does work. Try feeding SVN a path that is relative and is over 255 chars. It will not be able to complete the transaction. Now, try to the same path again only as an absolute path and it will successfully complete the transaction.

This bug was originally fixed for the update command, but still remains for the checkout command. There may be other command that are affected by this bug.

1. cd c:\a\very\long\paht\under\windows\xp\or\windows\2000
2. mvn scm:checkout -DconnectionUrl=scm:svn:http://myUrlHere
--> It says
[INFO] Executing: cmd.exe /X /C "svn --non-interactive checkout http://myUrlHere checkout"
[INFO] Working directory: c:\a\very\long\paht\under\windows\xp\or\windows\2000
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: Your .svn/tmp directory may be missing or corrupt; run 'svn cleanup' and try again
svn: Can't open file 'checkout\blabla....svn-base': Le chemin d'accès spécifié est introuvable.
3. If I execute svn --non-interactive checkout http://myUrlHere c:\a\very\long\paht\under\windows\xp\or\windows\2000\checkout : it works.

Issue Links

is related to

Bug - A problem which impairs or prevents the functions of the product. SCM-555 paths reported in svn-exe checkout do not match update command (always reports absolute)

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Improvement - An improvement or enhancement to an existing feature or task. SCM-368 Windows path length limitations can be overcome by feeding an absolute path to SVN

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Olivier Lamy added a comment - 01/Sep/08 4:29 PM

fixed in rev 691064.

Show
Olivier Lamy added a comment - 01/Sep/08 4:29 PM fixed in rev 691064.
Hide
Permalink
Dominique Jean-Prost added a comment - 02/Sep/08 2:35 AM

Just tested it. It works fine for me.
Please note that I only tested the checkout command.

Show
Dominique Jean-Prost added a comment - 02/Sep/08 2:35 AM Just tested it. It works fine for me. Please note that I only tested the checkout command.
Hide
Permalink
Larry North added a comment - 09/Dec/08 3:30 PM

I'm getting a similar error when using org.apache.maven.plugins:maven-scm-plugin:1.1.1-SNAPSHOT. When I execute

mvn scm:checkout -DconnectionUrl=scm:svn:https:MY REPO URL -Dusername=lnorth -Dpassword=*****

the output shows:

[INFO] Executing: cmd.exe /X /C "svn --username lnorth --password ***** --non-interactive checkout https:MY REPO URL "C:\Program Files\maestro-1.6.2\project-server\apps\continuum\webapp\WEB-INF\working-directory\26\target\checkout""
[INFO] Working directory: C:\Program Files\maestro-1.6.2\project-server\apps\continuum\webapp\WEB-INF\working-directory\26\target
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: Can't create directory 'C:\Program Files\maestro-1.6.2\project-server\apps\continuum\webapp\WEB-INF\working-directory\26\target\checkout\src\main\webapp\languageSpecific\helpPages\help_en_US\Setup for Invention DisclosureCreatingaNewInventionDisclosure_files\.svn\text-base': The filename or extension is too long.

Show
Larry North added a comment - 09/Dec/08 3:30 PM I'm getting a similar error when using org.apache.maven.plugins:maven-scm-plugin:1.1.1-SNAPSHOT. When I execute mvn scm:checkout -DconnectionUrl=scm:svn:https:MY REPO URL -Dusername=lnorth -Dpassword=***** the output shows: [INFO] Executing: cmd.exe /X /C "svn --username lnorth --password ***** --non-interactive checkout https:MY REPO URL "C:\Program Files\maestro-1.6.2\project-server\apps\continuum\webapp\WEB-INF\working-directory\26\target\checkout"" [INFO] Working directory: C:\Program Files\maestro-1.6.2\project-server\apps\continuum\webapp\WEB-INF\working-directory\26\target [ERROR] Provider message: [ERROR] The svn command failed. [ERROR] Command output: [ERROR] svn: Can't create directory 'C:\Program Files\maestro-1.6.2\project-server\apps\continuum\webapp\WEB-INF\working-directory\26\target\checkout\src\main\webapp\languageSpecific\helpPages\help_en_US\Setup for Invention DisclosureCreatingaNewInventionDisclosure_files\.svn\text-base': The filename or extension is too long.

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Dominique Jean-Prost
Vote (0)
Watch (2)

Dates

  • Created:
    01/Sep/08 4:51 AM
    Updated:
    06/Jun/10 10:03 AM
    Resolved:
    01/Sep/08 4:29 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.