I am using below API to add new file to bitbucket server. I am getting below error. Do we have any restriction on file path length and how to overcame this error ?
API: http://{{server}}:7990/rest/api/1.0/projects/{{project}}/repos/{{repo}}/browse/Automation-Software/JBoss 71 Enterprise Application Platform - VMware Sample/software-component/JBoss 71 Enterprise Application Platform - VMware Sample-manifest.json
Error:
{
"errors": [
{
"context": null,
"message": "'C:\\Program Files\\Git\\cmd\\git.exe add -- Automation-Software/JBoss 71 Enterprise Application Platform - VMware Sample/software-component/JBoss 71 Enterprise Application Platform - VMware Sample-manifest.json' exited with code 128 saying: error: open(\"Automation-Software/JBoss 71 Enterprise Application Platform - VMware Sample/software-component/JBoss 71 Enterprise Application Platform - VMware Sample-manifest.json\"): Filename too long\nerror: unable to index file 'Automation-Software/JBoss 71 Enterprise Application Platform - VMware Sample/software-component/JBoss 71 Enterprise Application Platform - VMware Sample-manifest.json'\nfatal: adding files failed",
"exceptionName": "com.atlassian.bitbucket.scm.CommandFailedException"
}
]
}
Regards
Uttam Agarwal