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

[FEATURE REQ] e-resource-server/resource-server-2/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample03/resource/server2/configuration/WebSecurityConfiguration.java: Filename too long #720

Open
donhuvy opened this issue Aug 29, 2023 · 3 comments
Labels
azure-spring All azure-spring related issues feature-request This issue requires a new behavior in the product in order be resolved.

Comments

@donhuvy
Copy link

donhuvy commented Aug 29, 2023

Should make package name shorter.

firerose@DESKTOP-EQBT80R MINGW64 /d/a
$ git clone https://github.com/donhuvy/azure-spring-boot-samples.git
Cloning into 'azure-spring-boot-samples'...
remote: Enumerating objects: 15667, done.
remote: Counting objects: 100% (788/788), done.
remote: Compressing objects: 100% (435/435), done.
remote: Total 15667 (delta 264), reused 715 (delta 235), pack-reused 14879Receiving objects: 100% (15667/15667), 16.54 MiB | 3.98 MiB/Receiving objects: 100% (15667/15667), 17.04 MiB | 4.04 MiB/s, done.

Resolving deltas: 100% (6318/6318), done.
error: unable to create file aad/spring-security/servlet/oauth2/client-access-multiple-resource-server/resource-server-1/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample03/resource/server1/configuration/ApplicationConfiguration.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/client-access-multiple-resource-server/resource-server-1/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample03/resource/server1/configuration/WebSecurityConfiguration.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/client-access-multiple-resource-server/resource-server-2/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample03/resource/server2/configuration/ApplicationConfiguration.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/client-access-multiple-resource-server/resource-server-2/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample03/resource/server2/configuration/WebSecurityConfiguration.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/login-authenticate-using-private-key-jwt/src/main/java/com/azure/spring/sample/reactive/servlet/oauth2/login/jwt/azure/activedirectory/AzureActiveDirectoryCertificateSignedJwtAssertionFactory.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/login-authenticate-using-private-key-jwt/src/main/java/com/azure/spring/sample/reactive/servlet/oauth2/login/jwt/azure/activedirectory/AzureActiveDirectoryJwtClientAuthenticationParametersConverter.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/login-authenticate-using-private-key-jwt/src/test/java/com/azure/spring/sample/reactive/servlet/oauth2/login/jwt/azure/activedirectory/AzureActiveDirectoryCertificateSignedAssertionFactoryTest.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/resource-server-check-permissions-by-claims-in-access-token/client/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample02/client/configuration/ApplicationConfiguration.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/resource-server-check-permissions-by-claims-in-access-token/client/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample02/client/configuration/WebSecurityConfiguration.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/resource-server-check-permissions-by-claims-in-access-token/client/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample02/client/controller/CheckPermissionByScopeController.java: Filename too long
error: unable to create file aad/spring-security/servlet/oauth2/resource-server-check-permissions-by-claims-in-access-token/resource-server/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample02/resource/server/ResourceServerApplication.java: Filename too long
fatal: cannot create directory at 'aad/spring-security/servlet/oauth2/resource-server-check-permissions-by-claims-in-access-token/resource-server/src/main/java/com/azure/spring/sample/active/directory/oauth2/servlet/sample02/resource/server/configuration': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'


firerose@DESKTOP-EQBT80R MINGW64 /d/a
$ git config --system core.longpaths true
error: could not lock config file C:/Program Files/Git/etc/gitconfig: Permission denied

firerose@DESKTOP-EQBT80R MINGW64 /d/a
$ git clone https://github.com/donhuvy/azure-spring-boot-samples.git
fatal: destination path 'azure-spring-boot-samples' already exists and is not an empty directory.

firerose@DESKTOP-EQBT80R MINGW64 /d/a
$ dir
azure-spring-boot-samples

firerose@DESKTOP-EQBT80R MINGW64 /d/a
$ rm -rf azure-spring-boot-samples/

firerose@DESKTOP-EQBT80R MINGW64 /d/a
$ git clone https://github.com/donhuvy/azure-spring-boot-samples.git
Cloning into 'azure-spring-boot-samples'...
remote: Enumerating objects: 15667, done.
remote: Counting objects: 100% (788/788), done.
remote: Compressing objects: 100% (431/431), done.
remote: Total 15667 (delta 265), reused 719 (delta 239), pack-reused 14879Receiving oReceiving objects: 100% (15667/15667), 17.04 MiB | 3.27 MiB/s, done.

Resolving deltas: 100% (6334/6334), done.
Updating files: 100% (1418/1418), done.

firerose@DESKTOP-EQBT80R MINGW64 /d/a

This solution works https://stackoverflow.com/a/22575737/3728901 but it is inconvenience.

@donhuvy donhuvy added the azure-spring All azure-spring related issues label Aug 29, 2023
@donhuvy
Copy link
Author

donhuvy commented Aug 29, 2023

image

@Netyyyy Netyyyy added the feature-request This issue requires a new behavior in the product in order be resolved. label Sep 1, 2023
@Netyyyy
Copy link
Contributor

Netyyyy commented Sep 1, 2023

Hi @donhuvy , thank you for reporting this issue.
We have received your submission and will take it into consideration. But we don't have a plan to make the package name shorter recently.
Please feel free to provide any additional information or context that you think may be helpful. We'll keep you updated on the progress of our review.
Thank you for your contribution to improving our project.

@spreadred
Copy link

On Windows, a potential workaround could be: git config --system core.longpaths true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues feature-request This issue requires a new behavior in the product in order be resolved.
Projects
None yet
Development

No branches or pull requests

3 participants