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

Local path limits, even on platforms that don't have them. #320

Open
awilkins opened this issue Jul 14, 2020 · 0 comments
Open

Local path limits, even on platforms that don't have them. #320

awilkins opened this issue Jul 14, 2020 · 0 comments

Comments

@awilkins
Copy link

awilkins commented Jul 14, 2020

Firstly, I'll qualify this with the following ; the server imposes these limits as well (!!) so even though I patched the client, I was still unable to get the files into my local folder without putting it nearer the root of my filesystem. Submitting this issue mostly so people can find it and know what's going on.

TEE imposes local path length limits of 259 chars (one less than MAX_PATH)

However, TEE runs on platforms that don't have these limits. Linux can accommodate 4,096 char paths. NTFS supports path lengths of 65kchar! This is solely about legacy limits imposed by older filesystems that are still held over in the Windows API AFAICT.

There are limits coded into the client, specifically in LocalPath.java at line 1348, that check for long paths (along with a comment about .NET not supporting long paths) that was probably true when the code was written.

I patched this out and rebuilt the client ... but the error I was getting was a SOAP error being thrown by the server! Apparently the server Has Opinions about where you should put files in your local filesystem. Given that it's the TFVC server at Azure Devops, I imagine this is never going to get patched out.

Hopefully my ticket at least explains this to someone.

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

No branches or pull requests

1 participant