Description
In Artifactory 7.X, when you search for a file on Artifactory UI, it is case-insensitive by default. For example, there are two files abc.py and Abc.py, if you search for abc.py, it returns "abc.py" and "Abc.py":
This is different from the Artifactory AQL, which is case-sensitive by default, such as:
curl -uadmin:password -H 'Content-Type: text/plain' -X POST 'http://<localhost:8082>/artifactory/api/search/aql' -d 'items.find({"repo": "example-repo-local", "name" : {"$match" : "abc.py" }})' Returns:
{
"results" : [ {
"repo" : "example-repo-local",
"path" : ".",
"name" : "abc.py",
"type" : "file",
"size" : 416,
"created" : "2024-12-19T06:29:33.167Z",
"created_by" : "admin",
"modified" : "2024-12-19T06:29:33.167Z",
"modified_by" : "admin",
"updated" : "2024-12-19T06:29:33.269Z"
} ],
"range" : {
"start_pos" : 0,
"end_pos" : 1,
"total" : 1
}
} Only abc.py returned.
If you want to get the same return value on the UI which is case-sensitive as the AQL, how can we configure it?
Resolution
You can add the following parameter and the value is false(It's true by default).
1. Edit the configure file $ARTIFACTORY_HOME/var/etc/artifactory/artifactory.system.properties, add:
artifactory.ui.search.artifacts.caseInsensitive=false
2. Restart the Artifactory.
3. Search "abc.py" again on the UI:
It will only return "abc.py".