spdx-online-tools icon indicating copy to clipboard operation
spdx-online-tools copied to clipboard

check license button no longer works

Open goneall opened this issue 1 year ago • 2 comments

After updating to the latest release (1.2.3), clicking the check license button does not return anything.

In looking in the browser debug console message, it looks like it can't find the file https://tools.spdx.org/static/js/utils.js.

Perhaps the get static didn't execute successfully or it is in the wrong place.

Below is the console output:



submit_new_license/:422 
 GET https://tools.spdx.org/static/js/utils.js net::ERR_ABORTED 404 (Not Found)
submit_new_license/:896 Uncaught ReferenceError: findLicenseMatch is not defined
    at HTMLButtonElement.<anonymous> (submit_new_license/:896:5)

goneall avatar Jan 21 '24 19:01 goneall

On the production server, there is a static directory, but it doesn't contain the utils.js.

Here's the contents of /spdx/src/app/static/js:

bootstrap.js      editor          jquery-ui.min.js  npm.js
bootstrap.min.js  html2canvas.js  jquery.min.js     warning.js

goneall avatar Jan 21 '24 19:01 goneall

I could not locate the file utils.js in the docker instance.

I tried running the collect static command manually - here's the output: collect-static-output.txt

goneall avatar Jan 21 '24 20:01 goneall