Bug 2030884

Summary: [RFE] Web Console: Report Credentials and Report Aliases are not saved when the web console is reloaded
Product: Red Hat Directory Server Reporter: Evgenia Martynyuk <emartyny>
Component: cockpit-389-dsAssignee: mreynolds
Status: MODIFIED --- QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: medium Docs Contact: Evgenia Martynyuk <emartyny>
Priority: medium    
Version: 12.0CC: idm-ds-dev-bugs, mreynolds
Target Milestone: DS12.3Keywords: FutureFeature, Triaged
Target Release: dirsrv-12.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: redhat-ds-12-9030020230711000312-1674d57 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Evgenia Martynyuk 2021-12-09 23:47:07 UTC
Description of problem:
It would be good If replication Report Credentials and Report Aliases that were set via the web console would be saved from cash.  

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.In the web console go to Monitoring -> Replication
2. Set additional Report Credentials (Add Credentials button) or set Report Aliases (Add Aliases button).
3. Generate or refresh replication monitoring report
4. Reload the web console.

Actual results:
You have to edit Report Credentials and Report Aliases again after the web console is reloaded

Expected results:
The replication report uses the Report Credentials and Aliases which were set before.
 

Additional info:
The problem can be solved if:
The problem can be solved if:
1) The browser cache is used to save the data
2) The dsrc file is used when the Replication Monitor Report page is loaded
3) Maybe the button or checkbox "use dsrc file data" are added

Comment 1 mreynolds 2021-12-10 02:02:04 UTC
Using the browser cache is not a good idea, but reading it in from the .dsrc file is.  Especially since the .dsrc file already supports this IIRC.

Comment 2 Evgenia Martynyuk 2022-01-11 19:18:38 UTC
Small update after the discussion with Mark. 

As Add Credentials button in the UI and [repl-monitor-connections] section in the .dsrc file represent the same feature, It would be nice If:

1) UI could update .dsrc file values
2) Values in the .dsrc were loaded to the UI if they are not empty.

Comment 3 Evgenia Martynyuk 2022-01-11 19:32:32 UTC
Corrected.

Small update after the discussion with Mark. 

As Add Credentials and Add Aliases buttons in the UI and [repl-monitor-connections], [repl-monitor-aliases] sections in the .dsrc file represent the same feature, It would be nice If:

1) UI could update .dsrc file values
2) Values in the .dsrc were loaded to the UI.

Comment 4 mreynolds 2023-04-24 18:12:39 UTC
Upstream ticket:

https://github.com/389ds/389-ds-base/issues/5738

Comment 5 mreynolds 2023-04-28 14:36:09 UTC
*** Bug 2190454 has been marked as a duplicate of this bug. ***