Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit e107798

Browse files
committed
Stream deploy: Fix property issues
- Ignore sensitive property value on deploy stream - Fix parsing line: app.foo=#jsonPath(payload,'$.lang')=='en' is now correctly parse
1 parent 2578a82 commit e107798

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

ui/src/app/streams/stream-deploy/builder/builder.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,10 @@ export class StreamDeployBuilderComponent implements OnInit, OnDestroy {
521521
const options = builder.builderAppsProperties[app.name] ? builder.builderAppsProperties[app.name] : app.options;
522522
const modal = this.bsModalService.show(StreamDeployAppPropertiesComponent);
523523

524-
modal.content.title = `Properties for ${app.name} (${version})`;
524+
modal.content.title = `Properties for ${app.name}`;
525+
if (version) {
526+
modal.content.title += ` (${version})`;
527+
}
525528
const appPropertiesSource = new AppPropertiesSource(Object.assign([], options
526529
.map((property) => Object.assign({}, property))));
527530

ui/src/app/streams/stream-deploy/stream-deploy.component.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,16 @@ export class StreamDeployComponent implements OnInit, OnDestroy {
181181
this.update(value);
182182
const propertiesMap = {};
183183
value.forEach((val) => {
184-
const arr = val.split('=');
185-
if (arr.length !== 2) {
184+
const arr = val.split(/=(.*)/);
185+
if (arr.length !== 3) {
186186
console.error('Split line property', val);
187187
} else {
188-
propertiesMap[arr[0]] = arr[1];
188+
// Workaround sensitive property: ignored property
189+
if (arr[1] === `'******'`) {
190+
console.log(`Sensitive property ${arr[0]} is ignored`);
191+
} else {
192+
propertiesMap[arr[0]] = arr[1];
193+
}
189194
}
190195
});
191196

0 commit comments

Comments
 (0)