diff --git a/client/src/routes/admin/ClientFiles.jsx b/client/src/routes/admin/ClientFiles.jsx
index 0ab8bc9..c5d4233 100644
--- a/client/src/routes/admin/ClientFiles.jsx
+++ b/client/src/routes/admin/ClientFiles.jsx
@@ -26,8 +26,8 @@ import { CreaturePortrait } from '../public/Atlas.jsx'
// for.
//
// **Nothing on this page throws for an operator-visible problem.** A shard that
-// is down, an asset plane switched off, a Linux host with no libgdiplus, a client
-// with no cliloc file — each is a reported state with a reason naming what to
+// is down, an asset plane switched off, a client with no cliloc file — each is a
+// reported state with a reason naming what to
// fix. A red box that says "500" would be the one thing an operator cannot act
// on, and every one of these states is ordinary.
@@ -332,7 +332,6 @@ export default function ClientFiles() {
// want opposite things from this page: one needs its buttons disabled, the
// other needs them available so the operator can retry.
const linked = Boolean(assets?.linked)
- const imagingBroken = shard?.imaging && shard.imaging.ok === false
return (
@@ -394,21 +393,6 @@ export default function ClientFiles() {
)}
- {imagingBroken && (
-
- The shard host cannot render images.
-
- {shard.imaging.reason ||
- 'A Linux shard host needs libgdiplus before it can decode a single sprite.'}{' '}
- Names (the cliloc table) are unaffected and can still be imported — they have no pixels
- in them.
-
-
- )}
-
{review.assets && (
null)
if (!force && bridge.sameSources(sources, meta?.sources)) {
@@ -561,7 +550,6 @@ async function getStatus() {
extractorVersion: sources.extractorVersion,
hashing: sources.hashing,
complete: sources.complete,
- imaging: sources.imaging,
// Which §5 families this overlay serves. A phase-3 or phase-4 overlay says
// `['body']`, which is what an admin panel needs in order to say "update
// your plugin" rather than showing an item-art pipeline that cannot work.
diff --git a/server/model/shardAssets/shardItemArt.model.js b/server/model/shardAssets/shardItemArt.model.js
index 5c52281..e5bb49f 100644
--- a/server/model/shardAssets/shardItemArt.model.js
+++ b/server/model/shardAssets/shardItemArt.model.js
@@ -288,14 +288,6 @@ async function warm({ limit = WARM_BATCH, force = false } = {}) {
return failure(err, 'client file manifest')
}
- if (sources.imaging && sources.imaging.ok === false) {
- return {
- status: 'unavailable',
- code: 'NO_IMAGING',
- reason: sources.imaging.reason || 'the shard host cannot render images',
- }
- }
-
// A phase-3 or phase-4 overlay serves bodies and nothing else. Asking it for a
// static is refused per request, which would be a warn on every pass forever —
// so it is checked once, here, and reported as the ordinary state it is.
diff --git a/server/router/admin/shard.router.js b/server/router/admin/shard.router.js
index 4592a64..420f703 100644
--- a/server/router/admin/shard.router.js
+++ b/server/router/admin/shard.router.js
@@ -377,7 +377,7 @@ shardRouter.get(
'/assets',
// #swagger.tags = ['Admin · Shard']
// #swagger.summary = 'Client asset import status: what is loaded, what the shard has, whether they differ (admin only)'
- // #swagger.description = 'What the site currently holds (the imported body catalogue, how many sprites are stored, how many atlas creatures resolved to a body id) beside what the shard reports for the client files those pictures come from. `drift: true` means the client files have changed since the last import — press Import. `shard.hashing: true` means a null hash is “not computed yet”, not “changed”: the shard hashes 195 MB anim files off the request path. `shard.imaging.ok: false` is the named NO_IMAGING state — a Linux shard host without libgdiplus cannot render a sprite at all, and the reason names the package to install. A shard with no link configured, or one that is down, is a reported state with a reason rather than an error.'
+ // #swagger.description = 'What the site currently holds (the imported body catalogue, how many sprites are stored, how many atlas creatures resolved to a body id) beside what the shard reports for the client files those pictures come from. `drift: true` means the client files have changed since the last import — press Import. `shard.hashing: true` means a null hash is “not computed yet”, not “changed”: the shard hashes 195 MB anim files off the request path. A shard with no link configured, or one that is down, is a reported state with a reason rather than an error.'
// #swagger.security = [{ "cookieAuth": [] }, { "bearerAuth": [] }]
/* #swagger.responses[200] = { description: 'Asset import status', content: { "application/json": { schema: { $ref: "#/components/schemas/UoAssetStatus" } } } } */
/* #swagger.responses[403] = { description: 'Admin role required', content: { "application/json": { schema: { $ref: "#/components/schemas/Error" } } } } */
@@ -403,7 +403,7 @@ shardRouter.post(
'/assets/warm',
// #swagger.tags = ['Admin · Shard']
// #swagger.summary = 'Fetch item and land artwork the site is missing, now (admin only)'
- // #swagger.description = 'Runs one pass of the item-art warm loop instead of waiting for its timer. The pass works out which item pictures this site's own rows name — every distinct (ItemID, hue) on a player vendor, plus anything a character sheet has shown since the last pass — and fetches the ones it does not already hold from the shard, hued and stored under uploads/items/. There is deliberately NO manifest and no bulk import here: the client addresses 49,152 item graphics times three thousand hues, so the working set is defined by what the site actually displays. `force` re-fetches pictures the site already holds, which is how an operator recovers a wiped uploads volume. `limit` bounds one pass; the default is 400, because the shard serves one asset request at a time and a pass must not hold that slot against an import. Nothing throws for an operator-visible problem: no shard configured, a shard that is down, an asset plane switched off, a host with no libgdiplus, or a plugin overlay too old to serve item art all answer 200 with status "unavailable"/"skipped" and a reason naming what to fix.'
+ // #swagger.description = 'Runs one pass of the item-art warm loop instead of waiting for its timer. The pass works out which item pictures this site's own rows name — every distinct (ItemID, hue) on a player vendor, plus anything a character sheet has shown since the last pass — and fetches the ones it does not already hold from the shard, hued and stored under uploads/items/. There is deliberately NO manifest and no bulk import here: the client addresses 49,152 item graphics times three thousand hues, so the working set is defined by what the site actually displays. `force` re-fetches pictures the site already holds, which is how an operator recovers a wiped uploads volume. `limit` bounds one pass; the default is 400, because the shard serves one asset request at a time and a pass must not hold that slot against an import. Nothing throws for an operator-visible problem: no shard configured, a shard that is down, an asset plane switched off, or a plugin overlay too old to serve item art all answer 200 with status "unavailable"/"skipped" and a reason naming what to fix.'
// #swagger.security = [{ "cookieAuth": [] }, { "bearerAuth": [] }]
/* #swagger.requestBody = { required: false, content: { "application/json": { schema: { type: "object", properties: { force: { type: "boolean", description: "Re-fetch pictures this site already holds." }, limit: { type: "integer", description: "How many keys this pass may fetch (1-2000)." } } } } } } */
/* #swagger.responses[200] = { description: 'What the pass did', content: { "application/json": { schema: { $ref: "#/components/schemas/UoItemArtWarmResult" } } } } */
diff --git a/server/router/admin/shardAssets.controller.js b/server/router/admin/shardAssets.controller.js
index 6a29844..a74b556 100644
--- a/server/router/admin/shardAssets.controller.js
+++ b/server/router/admin/shardAssets.controller.js
@@ -9,8 +9,8 @@
// records the action in the admin activity log.
//
// **An import result is not an exception**, exactly as for clilocs. A shard that
-// is down, an asset plane the operator has switched off, a Linux host with no
-// libgdiplus, a client patched halfway through the walk — each is a 200 carrying
+// is down, an asset plane the operator has switched off, a client patched
+// halfway through the walk — each is a 200 carrying
// `status: 'unavailable'` and a reason naming what to fix, not a 500 that says
// only "something broke". The one thing that DOES 500 is this file having a bug.
//
diff --git a/server/swagger/doc.js b/server/swagger/doc.js
index 305d20f..f85ffbc 100644
--- a/server/swagger/doc.js
+++ b/server/swagger/doc.js
@@ -684,16 +684,6 @@ module.exports = {
extractorVersion: { type: 'integer', example: 1 },
hashing: { type: 'boolean', description: 'A hash is being computed in the background. A null `sha256` while this is true means “not yet”, never “changed”.', example: false },
complete: { type: 'boolean', description: 'Every client file has a content hash.', example: true },
- imaging: {
- type: 'object',
- nullable: true,
- description: 'Whether the shard host can render an image at all. `ok: false` is the named NO_IMAGING state: ServUO under Mono needs libgdiplus, and without it a Linux shard cannot decode a sprite. Cliloc and atlas import are unaffected.',
- properties: {
- ok: { type: 'boolean', example: true },
- code: { type: 'string', nullable: true, example: null },
- reason: { type: 'string', nullable: true },
- },
- },
families: {
type: 'array',
items: { type: 'string' },
@@ -713,14 +703,14 @@ module.exports = {
type: 'string',
nullable: true,
description: 'Machine-readable cause of `reason`.',
- enum: ['DISABLED', 'NO_SOURCE', 'SHARD_DOWN', 'PROTOCOL', 'BUSY', 'NO_IMAGING', 'SOURCE_CHANGED', 'UNAVAILABLE'],
+ enum: ['DISABLED', 'NO_SOURCE', 'SHARD_DOWN', 'PROTOCOL', 'BUSY', 'SOURCE_CHANGED', 'UNAVAILABLE'],
},
},
},
UoAssetImportResult: {
type: 'object',
description:
- 'Outcome of an asset import. Reported rather than thrown, so a shard that is down or a host that cannot render images is an answer and not a 500.',
+ 'Outcome of an asset import. Reported rather than thrown, so a shard that is down is an answer and not a 500.',
properties: {
status: {
type: 'string',
@@ -732,8 +722,8 @@ module.exports = {
code: {
type: 'string',
nullable: true,
- description: 'Machine-readable cause. `NO_IMAGING` is a shard host with no libgdiplus; `SOURCE_CHANGED` is a client patched partway through the walk, in which case nothing was applied.',
- enum: ['DISABLED', 'NO_SOURCE', 'SHARD_DOWN', 'PROTOCOL', 'BUSY', 'NO_IMAGING', 'SOURCE_CHANGED', 'INCOMPLETE', 'STUCK', 'MALFORMED', 'TOO_LARGE', 'UNAVAILABLE'],
+ description: 'Machine-readable cause. `SOURCE_CHANGED` is a client patched partway through the walk, in which case nothing was applied.',
+ enum: ['DISABLED', 'NO_SOURCE', 'SHARD_DOWN', 'PROTOCOL', 'BUSY', 'SOURCE_CHANGED', 'INCOMPLETE', 'STUCK', 'MALFORMED', 'TOO_LARGE', 'UNAVAILABLE'],
},
catalog: { type: 'string', nullable: true, example: 'a3f9c21d4b8e0771' },
extractorVersion: { type: 'integer', nullable: true, example: 1 },
@@ -821,8 +811,8 @@ module.exports = {
type: 'string',
nullable: true,
description:
- 'Machine-readable cause. `NO_IMAGING` is a shard host with no libgdiplus. `UNSUPPORTED` is a plugin overlay that serves the creature catalogue but not item art — update the overlay.',
- enum: ['DISABLED', 'NO_SOURCE', 'SHARD_DOWN', 'PROTOCOL', 'BUSY', 'NO_IMAGING', 'UNSUPPORTED', 'INCOMPLETE', 'STUCK', 'MALFORMED', 'TOO_LARGE', 'UNAVAILABLE'],
+ 'Machine-readable cause. `UNSUPPORTED` is a plugin overlay that serves the creature catalogue but not item art — update the overlay.',
+ enum: ['DISABLED', 'NO_SOURCE', 'SHARD_DOWN', 'PROTOCOL', 'BUSY', 'UNSUPPORTED', 'INCOMPLETE', 'STUCK', 'MALFORMED', 'TOO_LARGE', 'UNAVAILABLE'],
},
catalog: {
type: 'string',
diff --git a/server/test/assetBridge.test.js b/server/test/assetBridge.test.js
index 672c26b..3732d1a 100644
--- a/server/test/assetBridge.test.js
+++ b/server/test/assetBridge.test.js
@@ -107,7 +107,6 @@ const sourcesReply = (extra = {}) =>
ok({
kind: 'assets.sources.ok',
extractorVersion: 1,
- imaging: { ok: true },
hashing: false,
complete: true,
files: [
@@ -334,16 +333,16 @@ test('a busy shard is retried rather than failing the walk', async (t) => {
assert.equal(assets.size, 1)
})
-test('a shard host with no libgdiplus is named, not reported as a dead shard', async (t) => {
+test('a 503 is a shard that is down, whatever its reason says', async (t) => {
saved.getAssetManifest = uoLinkClient.getAssetManifest
t.after(restore)
uoLinkClient.getAssetManifest = async () =>
- fail(503, { reason: "this shard host cannot render images - Mono's System.Drawing needs libgdiplus" })
+ fail(503, { reason: 'the shard is not connected' })
await assert.rejects(
() => bridge.readManifest(),
- (err) => err.code === 'NO_IMAGING',
+ (err) => err.code === 'SHARD_DOWN',
)
})
diff --git a/server/test/clilocBridge.test.js b/server/test/clilocBridge.test.js
index 4a30586..bd1b021 100644
--- a/server/test/clilocBridge.test.js
+++ b/server/test/clilocBridge.test.js
@@ -59,7 +59,6 @@ const sourcesReply = (file = {}) =>
ok({
kind: 'assets.sources.ok',
extractorVersion: 1,
- imaging: { ok: true },
hashing: false,
complete: true,
files: [
diff --git a/server/test/shardAssets.model.test.js b/server/test/shardAssets.model.test.js
index 8e868e6..e6fece4 100644
--- a/server/test/shardAssets.model.test.js
+++ b/server/test/shardAssets.model.test.js
@@ -61,7 +61,6 @@ function stubEverything({ manifest, fetched, held = new Map(), meta = null, sour
extractorVersion: 1,
hashing: false,
complete: true,
- imaging: { ok: true },
}
bridge.readManifest = async () => manifest
@@ -162,7 +161,6 @@ test('unchanged client files import nothing at all', async (t) => {
extractorVersion: 1,
hashing: false,
complete: true,
- imaging: { ok: true },
}
stubEverything({ manifest: manifestOf([]), meta: { sources }, sources })
@@ -177,27 +175,6 @@ test('unchanged client files import nothing at all', async (t) => {
assert.equal(result.status, 'unchanged')
})
-test('a host that cannot render images is named rather than walked', async (t) => {
- // §4.4: reported on the SOURCE gate, so an operator meets it while setting the
- // shard up rather than from an empty bestiary weeks later.
- stubEverything({
- manifest: manifestOf([]),
- sources: {
- files: {},
- extractorVersion: 1,
- hashing: false,
- complete: true,
- imaging: { ok: false, code: 'NO_IMAGING', reason: 'needs libgdiplus' },
- },
- })
- t.after(restore)
-
- const result = await model.importAssets()
-
- assert.equal(result.status, 'unavailable')
- assert.equal(result.code, 'NO_IMAGING')
-})
-
// ── the diff (§6) ─────────────────────────────────────────────────────────
test('only the keys whose hash moved are fetched', async (t) => {
diff --git a/server/test/shardItemArt.model.test.js b/server/test/shardItemArt.model.test.js
index ab94f7a..23a32b7 100644
--- a/server/test/shardItemArt.model.test.js
+++ b/server/test/shardItemArt.model.test.js
@@ -60,7 +60,6 @@ function stub({
extractorVersion: 2,
hashing: false,
complete: true,
- imaging: { ok: true },
families,
})
@@ -178,25 +177,6 @@ test('no shard link is skipped, not failed', async (t) => {
assert.equal((await model.warm()).status, 'skipped')
})
-test('a host that cannot render images is the named NO_IMAGING state', async (t) => {
- stub()
- t.after(restore)
-
- bridge.sourceFingerprint = async () => ({
- files: {},
- extractorVersion: 2,
- hashing: false,
- complete: true,
- imaging: { ok: false, reason: 'libgdiplus is not installed' },
- families: ['body', 'static'],
- })
-
- const result = await model.warm()
-
- assert.equal(result.status, 'unavailable')
- assert.equal(result.code, 'NO_IMAGING')
-})
-
// ── what gets asked for ────────────────────────────────────────────────────
test('only the keys we do not already hold under the shard’s current catalogue are fetched', async (t) => {
diff --git a/server/test/treeBridge.test.js b/server/test/treeBridge.test.js
index 40cc505..e2d6734 100644
--- a/server/test/treeBridge.test.js
+++ b/server/test/treeBridge.test.js
@@ -317,7 +317,6 @@ test('a tree-only shard tells the client-file readers so, rather than looking em
extractorVersion: 3,
assetsEnabled: false,
treeEnabled: true,
- imaging: { ok: true },
families: ['tree'],
files: [],
more: false,
diff --git a/server/utils/assetBridge.js b/server/utils/assetBridge.js
index f94b6e6..ad283c3 100644
--- a/server/utils/assetBridge.js
+++ b/server/utils/assetBridge.js
@@ -118,11 +118,7 @@ function describeFailure(res, what) {
'BUSY',
)
case 503:
- // The named `NO_IMAGING` outcome arrives this way: a Linux shard host with
- // no libgdiplus cannot render a sprite at all, and §4.4 requires that be an
- // actionable sentence rather than a stack trace. The shard's own wording
- // already names the package and the command, so it is passed through.
- return new AssetBridgeError(reason, /libgdiplus/i.test(reason) ? 'NO_IMAGING' : 'SHARD_DOWN')
+ return new AssetBridgeError(reason, 'SHARD_DOWN')
case 504:
return new AssetBridgeError(`The shard did not answer: ${reason}`, 'SHARD_DOWN')
default:
@@ -214,7 +210,7 @@ const SOURCE_FILES = [
* Stage 1 of the import gate (§6): have the client files this family reads
* changed at all?
*
- * Returns `{ files, extractorVersion, hashing, complete, imaging }` where `files`
+ * Returns `{ files, extractorVersion, hashing, complete, families }` where `files`
* is a `{ name: { size, mtime, sha256 } }` map over `SOURCE_FILES` — a file the
* shard does not have is simply absent, which is normal (few clients carry all
* five anim files).
@@ -260,7 +256,6 @@ async function sourceFingerprint() {
extractorVersion: Number(res.data?.extractorVersion) || 0,
hashing: Boolean(res.data?.hashing),
complete: Boolean(res.data?.complete),
- imaging: res.data?.imaging ?? null,
// Which §5 key families this overlay can be asked for (phase 5). Absent on a
// phase-3 or phase-4 overlay, which served bodies and nothing else — so the
// fallback is `['body']` rather than `[]`: an older shard is not a shard with
diff --git a/swagger-fragment.json b/swagger-fragment.json
index b0e4e10..6a38cdd 100644
--- a/swagger-fragment.json
+++ b/swagger-fragment.json
@@ -116,7 +116,7 @@
"Admin · Shard"
],
"summary": "Client asset import status: what is loaded, what the shard has, whether they differ (admin only)",
- "description": "What the site currently holds (the imported body catalogue, how many sprites are stored, how many atlas creatures resolved to a body id) beside what the shard reports for the client files those pictures come from. `drift: true` means the client files have changed since the last import — press Import. `shard.hashing: true` means a null hash is “not computed yet”, not “changed”: the shard hashes 195 MB anim files off the request path. `shard.imaging.ok: false` is the named NO_IMAGING state — a Linux shard host without libgdiplus cannot render a sprite at all, and the reason names the package to install. A shard with no link configured, or one that is down, is a reported state with a reason rather than an error.",
+ "description": "What the site currently holds (the imported body catalogue, how many sprites are stored, how many atlas creatures resolved to a body id) beside what the shard reports for the client files those pictures come from. `drift: true` means the client files have changed since the last import — press Import. `shard.hashing: true` means a null hash is “not computed yet”, not “changed”: the shard hashes 195 MB anim files off the request path. A shard with no link configured, or one that is down, is a reported state with a reason rather than an error.",
"responses": {
"200": {
"description": "Asset import status",
@@ -9007,68 +9007,6 @@
}
}
},
- "imaging": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "example": "object"
- },
- "nullable": {
- "type": "boolean",
- "example": true
- },
- "description": {
- "type": "string",
- "example": "Whether the shard host can render an image at all. `ok: false` is the named NO_IMAGING state: ServUO under Mono needs libgdiplus, and without it a Linux shard cannot decode a sprite. Cliloc and atlas import are unaffected."
- },
- "properties": {
- "type": "object",
- "properties": {
- "ok": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "example": "boolean"
- },
- "example": {
- "type": "boolean",
- "example": true
- }
- }
- },
- "code": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "example": "string"
- },
- "nullable": {
- "type": "boolean",
- "example": true
- },
- "example": {}
- }
- },
- "reason": {
- "type": "object",
- "properties": {
- "type": {
- "type": "string",
- "example": "string"
- },
- "nullable": {
- "type": "boolean",
- "example": true
- }
- }
- }
- }
- }
- }
- },
"families": {
"type": "object",
"properties": {
@@ -9167,7 +9105,6 @@
"SHARD_DOWN",
"PROTOCOL",
"BUSY",
- "NO_IMAGING",
"SOURCE_CHANGED",
"UNAVAILABLE"
],
@@ -9190,7 +9127,7 @@
},
"description": {
"type": "string",
- "example": "Outcome of an asset import. Reported rather than thrown, so a shard that is down or a host that cannot render images is an answer and not a 500."
+ "example": "Outcome of an asset import. Reported rather than thrown, so a shard that is down is an answer and not a 500."
},
"properties": {
"type": "object",
@@ -9252,7 +9189,7 @@
},
"description": {
"type": "string",
- "example": "Machine-readable cause. `NO_IMAGING` is a shard host with no libgdiplus; `SOURCE_CHANGED` is a client patched partway through the walk, in which case nothing was applied."
+ "example": "Machine-readable cause. `SOURCE_CHANGED` is a client patched partway through the walk, in which case nothing was applied."
},
"enum": {
"type": "array",
@@ -9262,7 +9199,6 @@
"SHARD_DOWN",
"PROTOCOL",
"BUSY",
- "NO_IMAGING",
"SOURCE_CHANGED",
"INCOMPLETE",
"STUCK",
@@ -9906,7 +9842,7 @@
},
"description": {
"type": "string",
- "example": "Machine-readable cause. `NO_IMAGING` is a shard host with no libgdiplus. `UNSUPPORTED` is a plugin overlay that serves the creature catalogue but not item art — update the overlay."
+ "example": "Machine-readable cause. `UNSUPPORTED` is a plugin overlay that serves the creature catalogue but not item art — update the overlay."
},
"enum": {
"type": "array",
@@ -9916,7 +9852,6 @@
"SHARD_DOWN",
"PROTOCOL",
"BUSY",
- "NO_IMAGING",
"UNSUPPORTED",
"INCOMPLETE",
"STUCK",