-
Notifications
You must be signed in to change notification settings - Fork 11
Admin App Import does not work. #322
Copy link
Copy link
Open
Description
Describe the bug
I used the Import feature to import a revised configuration.
The import claims it is successful.
When I review the parameters I see that nothing has changed.
Note:
- the comparison feature does work.
- updating field and persisting them also works correctly
To Reproduce
Steps to reproduce the behavior:
${TEST_ADMIN_ENDPOINT} - the url for the Admin App Endpoint in TEST
${DEV_ADMIN_ENDPOINT} - the url for the Admin App Endpoint in DEV
- export a configuration from another environment.
curl -s https://${TEST_ADMIN_ENDPOINT}/int/export >ols-router-data.config.json- Modify the output file in some way so that you can confirm the import succeeds
I change thedataSource.baseFileUrlto something like 'this is a test' - import the configuration
curl -X POST https://${DEV_ADMIN_ENDPONT}/int/import -F file=@ols-router-data.config.jsonResponse:
<!DOCTYPE html>
<html>
<head>
<title>OLS Router Admin</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="body">
<div class="sideBar">
<div class="sideNav">
<div class="sideMenu">
<div class="title">OLS Router Admin</a></div>
<ul>
<li><a href="params.jsp">Parameter Defaults</a></li>
<li><a href="import_export.jsp">Import/Export</a></li>
<li><a href="help.jsp">Administration Help</a></li>
</ul>
</div>
</div>
</div>
<div class="bodyContainer">
<div class="bodyContent">
<h1>Import Configuration</h1>
<h2>Import Successful</h2>
<p><strong>Messages</strong></p>
<ul>
</ul>
</div>
</div>
</div>
</body>- I review the parameters in the UI and do not see my change or any other changes.
Additional Context:
- there are no errors in the logs for the Admin app.
- The contents of the
pom.propertes:#Generated by Maven #Wed Apr 29 17:04:17 PDT 2020 groupId=ca.bc.gov.ols artifactId=ols-router-admin version=2.1.3-SNAPSHOT
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

