hashicorp / nomad

Nomad is an easy-to-use, flexible, and performant workload orchestrator that can deploy a mix of microservice, batch, containerized, and non-containerized applications. Nomad is easy to operate and scale and has native Consul and Vault integrations.
https://www.nomadproject.io/
Other
14.91k stars 1.95k forks source link

missing `/ui/assets/~@hashicorp/design-system-tokens/dist/products/css/helpers/colors.css` #19867

Open quinndiggitypolymath opened 9 months ago

quinndiggitypolymath commented 9 months ago

Nomad version

v1.6.6

Operating system and Environment details

linux:

Issue

The ui for 1.6.6 is referencing a non-existent colors.css - from index.html (behind /ui/jobs, etc), within /ui/assets/nomad-ui-__cachebust__.css, there is the following:

... @import '~@hashicorp/design-system-tokens/dist/products/css/helpers/colors.css'; ... 

that reference resolves to /ui/assets/~@hashicorp/design-system-tokens/dist/products/css/helpers/colors.css, which ultimately serves up a zero-length 200 OK response with content-type: text/html; charset=utf-8 :confounded:

I suspect this is also related to the UI in the most recent 1.6 version interfering with dark reader, which is the a great way to adapt the nomad UI in lieu of https://github.com/hashicorp/nomad/issues/19562

image

quinndiggitypolymath commented 9 months ago

image image image

quinndiggitypolymath commented 9 months ago

Re: NS_ERROR_CORRUPTED_CONTENT - this happens regardless of cache, ie. disabled in dev tools, and explicit:

proxy_hide_header Cache-Control;
add_header Cache-Control 'private' always;
quinndiggitypolymath commented 9 months ago

Compared with prior versions of nomad, for example:

image

quinndiggitypolymath commented 9 months ago

dark reader has worked great up until v1.6.6 - works perfectly fine on v0.8 until v1.5; the blinding white background effect has only been present on v1.6:

image

lgfa29 commented 9 months ago

Thanks for the report @quinndiggitypolymath.

I have flagged this for our UI team to take a further look at where this file may be coming from.