fix(nextcloud-files): WR-09/IN-02 ungueltige Pfadzeichen sind 400, Vorschau ohne SVG
- WR-09: ein einzelnes UTF-16-Ersatzzeichen in einem Pfadsegment ist 400 invalidPath (bzw. invalidName) statt eines URIError mit 500; die Weboberflaeche wiederholt keine 4xx - IN-02: Vorschaubilder nur als Rasterbild, image/svg+xml wird wie ein fehlendes Vorschaubild behandelt (CSP-Sandbox und nosniff bleiben) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -497,6 +497,9 @@ describe('isRetryable', () => {
|
||||
expect(isRetryable(e(503, 'nextcloudMaintenance'))).toBe(false);
|
||||
expect(isRetryable(e(409, 'nameTaken'))).toBe(false);
|
||||
expect(isRetryable(e(413, 'chunkTooLarge'))).toBe(false);
|
||||
// WR-09: ein ungueltiger Pfad ist jetzt 400 invalidPath — keine 4xx wird wiederholt.
|
||||
expect(isRetryable(e(400, 'invalidPath'))).toBe(false);
|
||||
expect(isRetryable(e(400, null))).toBe(false);
|
||||
expect(isRetryable(e(0, 'aborted'))).toBe(false);
|
||||
expect(isRetryable(new Error('x'))).toBe(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user