wso2 / wso2/cipher-tool

Xpath for the Datasource in the cipher-tool.properties file is incorrect

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
41
Forks
92
PR merge metrics
No merged PRs in 30d

Description

Description:

The Xpath available for the following property in the default cipher-tool.properties file is incorrect.

Datasources.WSO2_CARBON_DB.Configuration.Password=repository/conf/datasources/master-datasources.xml//datasources-configuration/datasources/datasource[name='WSO2_CARBON_DB']/definition[@type='RDBMS']/configuration/password,false

The correct Xpath should be corrected as follows.

repository/conf/datasources/master-datasources.xml//datasources/datasource[name='WSO2_CARBON_DB']/definition[@type='RDBMS']/configuration/password,false

Affected Product Version:
Multiple product versions including IS-5.7.0, APIM-2.5.0

Steps to reproduce:
Impacts the encryption process.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the default cipher-tool.properties file and locate the Datasources.WSO2_CARBON_DB.Configuration.Password property. Compare its current XPath with the path specified in the issue, then verify that the corrected path allows the encryption process to find the database password; no test file is mentioned.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.