From 672cc54c14b0c47023fd76141b6a3852df09b427 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 8 Jun 2023 16:36:37 -0400 Subject: [PATCH] compiler/js.xsl: Derive supplier name from base package name At or around 00492ace0198d6d64471a0888f570197838e3f09, I modified packages to output canonical `@name`s, which contains a leading forward slash. Previously, names omitted that slash. I did not believe that this caused any problems. It seems that the XSLT-based `standalones` system utilizes this package name to derive a supplier name, which is supposed to be the filename of the package without any path. Since the package name changed from `suppliers/foo` to `/suppliers/foo`, for example, this was now producing "suppliers/name" instead of "name". Of course, it was never a good idea to strip off only the first path component. But, this is how it has been since TAME was originally created well over a decade ago. I did not catch this since I was diff'ing the output of the xmle files, not the final JS files. I had thought that was sufficient, given what I was changing, but I was wrong. DEV-14502 --- src/current/compiler/js.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/current/compiler/js.xsl b/src/current/compiler/js.xsl index 1a65e1e1..7281d061 100644 --- a/src/current/compiler/js.xsl +++ b/src/current/compiler/js.xsl @@ -159,7 +159,7 @@ /**@expose*/rater.supplier = ' - + '; /**@expose*/rater.meta = meta;