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

repository.json is not updated properly #85

Open
chrajesh opened this issue Nov 29, 2024 · 0 comments
Open

repository.json is not updated properly #85

chrajesh opened this issue Nov 29, 2024 · 0 comments

Comments

@chrajesh
Copy link
Collaborator

I would like to bring below thing to your notice that, we found an observation in this new v9.6.1 tag which we created is below, this one we didn't observed with v9.4.0, even we face this error we were able to proceed further with v9.6.1

issue in the file: e36cd80

When we execute below command

solr@server1:/opt/solr961/bin$ ./solr package deploy data-import-handler -y -collections test

Executing {"add-requesthandler":{"name":"/dataimport","class":"data-import-handler:org.apache.solr.handler.dataimport.DataImportHandler","defaults":{"config":"data-config.xml"}}} for path:/api/collections/test/config

Executing http://localhost:8983/api/collections/test/config/requestHandler?componentName=/dataimport&meta=true for collection:test
{
"responseHeader":{
"status":0,
"QTime":17},
"config":{"requestHandler":{"/dataimport":{
"name":"/dataimport",
"class":"data-import-handler:org.apache.solr.handler.dataimport.DataImportHandler",
"defaults":{"config":"data-config.xml"},
"packageinfo":{
"package":"data-import-handler",
"version":"9.6.1",
"files":[
"/package/data-import-handler/9.6.1/data-import-handler-9.6.1.jar",
"/package/data-import-handler/9.6.1/mariadb-java-client-2.6.0.jar"],
"manifest":"/package/data-import-handler/9.6.1/manifest.json",
"manifestSHA512":"ee8f4fcb1762b36fb7af1b97e76d757f29ad55b3e796db014ba90ce80f283d14e3c56060bd7329b74024615b8b6bef0f75c39c73f6d3e558200e6f6d6daca8be"}}}}}
com.jayway.jsonpath.InvalidPathException: Error in JSON Path:$[config].[requestHandler].[HANDLER-PATH].[packageinfo].[version]
at org.apache.solr.packagemanager.PackageManager.jsonPathRead(PackageManager.java:873)
at org.apache.solr.packagemanager.PackageManager.verify(PackageManager.java:837)
at org.apache.solr.packagemanager.PackageManager.deployPackage(PackageManager.java:365)
at org.apache.solr.packagemanager.PackageManager.deploy(PackageManager.java:950)
at org.apache.solr.cli.PackageTool.runImpl(PackageTool.java:187)
at org.apache.solr.cli.ToolBase.runTool(ToolBase.java:52)
at org.apache.solr.cli.SolrCLI.main(SolrCLI.java:154)
**Caused by: com.jayway.jsonpath.InvalidPathException: Could not parse token starting at position 1. Expected ?, ', 0-9, ***
at com.jayway.jsonpath.internal.path.PathCompiler.fail(PathCompiler.java:642)
at com.jayway.jsonpath.internal.path.PathCompiler.readNextToken(PathCompiler.java:139)
at com.jayway.jsonpath.internal.path.PathCompiler.readContextToken(PathCompiler.java:123)
at com.jayway.jsonpath.internal.path.PathCompiler.compile(PathCompiler.java:58)
at com.jayway.jsonpath.internal.path.PathCompiler.compile(PathCompiler.java:75)
at com.jayway.jsonpath.JsonPath.(JsonPath.java:97)
at com.jayway.jsonpath.JsonPath.compile(JsonPath.java:515)
at com.jayway.jsonpath.internal.JsonContext.pathFromCache(JsonContext.java:222)
at com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:77)
at org.apache.solr.packagemanager.PackageManager.jsonPathRead(PackageManager.java:869)
... 6 more

ERROR: Error in JSON Path:$[config].[requestHandler].[HANDLER-PATH].[packageinfo].[version]

the difference is verify-command - condition thing -> in 9.4.0 it is there as RH-HANLDER-PATH but in 9.6.1 i see HANDLER-PATH, also in 9/6/1 we have in path RH-HANDLER-PATH
i believe we should have RH-HANDLER-PATH

Please correct me if i am wrong.

9.4.0

"verify-command": {
"condition": "$['config'].['requestHandler'].['${RH-HANDLER-PATH}'].['packageinfo'].['version']",
"expected": "${package-version}",
"method": "GET",
"path": "/api/collections/${collection}/config/requestHandler?componentName=${RH-HANDLER-PATH}&meta=true"
}

9.6.1

"verify-command": {
"condition": "$[config].[requestHandler].[HANDLER-PATH].[packageinfo].[version]",
"expected": "${package-version}",
"method": "GET",
"path": "/api/collections/${collection}/config/requestHandler?componentName=${RH-HANDLER-PATH}&meta=true"
}

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