Skip to content

[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

@donhuvy

Description

@donhuvy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    azure-springAll azure-spring related issuesfeature-requestThis issue requires a new behavior in the product in order be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions