Skip to content

Commit 2733523

Browse files
committed
Address typo in matching CDS services to implementations
This now restricts the files to exist in the same directory, not just the same name.
1 parent a8ec6ec commit 2733523

File tree

1 file changed

+2
-1
lines changed
  • javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap

1 file changed

+2
-1
lines changed

javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap/CDL.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ class CdlService extends CdlElement {
165165
CdlService() { kind = CdlServiceKind(this.getPropStringValue("kind")) }
166166

167167
UserDefinedApplicationService getImplementation() {
168+
// This file base name will be .cds.json, so the stem will be .cds
168169
this.getFile().getStem() = result.getFile().getStem() + ".cds" and
169-
this.getFile().getParentContainer() = this.getFile().getParentContainer()
170+
this.getFile().getParentContainer() = result.getFile().getParentContainer()
170171
}
171172

172173
/**

0 commit comments

Comments
 (0)