fix: getQuerystringSearchQuery doesn't accept path as an input #17950
Annotations
2 errors
Run npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone && pnpm --filter @plone/client test:
packages/client/src/restapi/querystring-search/get.test.tsx#L64
AxiosError: Request failed with status code 403
❯ settle ../../node_modules/.pnpm/axios@1.6.8_debug@4.3.4/node_modules/axios/lib/core/settle.js:19:12
❯ XMLHttpRequest.onloadend ../../node_modules/.pnpm/axios@1.6.8_debug@4.3.4/node_modules/axios/lib/adapters/xhr.js:111:7
❯ XMLHttpRequest.invokeTheCallbackFunction ../../node_modules/.pnpm/jsdom@21.1.2/node_modules/jsdom/lib/jsdom/living/generated/EventHandlerNonNull.js:14:28
❯ XMLHttpRequest.<anonymous> ../../node_modules/.pnpm/jsdom@21.1.2/node_modules/jsdom/lib/jsdom/living/helpers/create-event-accessor.js:35:32
❯ innerInvokeEventListeners ../../node_modules/.pnpm/jsdom@21.1.2/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25
❯ invokeEventListeners ../../node_modules/.pnpm/jsdom@21.1.2/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3
❯ XMLHttpRequestImpl._dispatch ../../node_modules/.pnpm/jsdom@21.1.2/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9
❯ fireAnEvent ../../node_modules/.pnpm/jsdom@21.1.2/node_modules/jsdom/lib/jsdom/living/helpers/events.js:18:36
❯ Request.<anonymous> ../../node_modules/.pnpm/jsdom@21.1.2/node_modules/jsdom/lib/jsdom/living/xhr/XMLHttpRequest-impl.js:891:5
❯ Request.emit node:events:531:35
❯ Axios.request ../../node_modules/.pnpm/axios@1.6.8_debug@4.3.4/node_modules/axios/lib/core/Axios.js:45:41
❯ src/restapi/querystring-search/get.test.tsx:64:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ERR_BAD_REQUEST', config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ 'Function<transformRequest>' ], transformResponse: [ 'Function<transformResponse>' ], timeout: +0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: 'Function<FormData>', Blob: 'Function<Blob>' }, validateStatus: 'Function<validateStatus>', headers: { Accept: 'application/json', 'Content-Type': 'application/json', Authorization: '***', constructor: 'Function<AxiosHeaders>', set: 'Function<set>', get: 'Function<get>', has: 'Function<has>', delete: 'Function<delete>', clear: 'Function<clear>', normalize: 'Function<normalize>', concat: 'Function<concat>', toJSON: 'Function<toJSON>', toString: 'Function<toString>', getContentType: 'Function<value>', setContentType: 'Function<value>', hasContentType: 'Function<value>', getContentLength: 'Function<value>', setContentLength: 'Function<value>', hasContentLength: 'Function<value>', getAccept: 'Function<value>', setAccept: 'Function<value>', hasAccept: 'Function<value>', getAcceptEncoding: 'Function<value>', setAcceptEncoding: 'Function<value>', hasAcceptEncoding: 'Function<value>', getUserAgent: 'Function<value>', setUserAgent: 'Function<value>', hasUserAgent: 'Function<value>', getAuthorization: 'Function<value>', setAuthorization: 'Function<value>', hasAuthorization: 'Function<value>' }, method: 'post', url: 'http://localhost:55001/plone/++api++/', data: '{"@type":"Folder","id":"test-folder","title":"Test Folder"}', paramsSerializer: { serialize: 'Function<paramsSerializer>' } }, request: { constructor: 'Function<XMLHttpRequest>', open: 'Function<open>', setRequestHeader: 'Function<setRequestHeader>', send: 'Function<send>', abort: 'Function<abort>', getResponseHeader: 'Function<getResponseHeader>', getAllResponseHeaders: 'Function<getAllResponseHeaders>', overrideMimeType: 'Function<overrideMimeType>', onreadystatechange: null, readyState: 4, timeout: +0, withCredentials: false, upload: { constructor: 'Function<XMLHttpRequestUpload>', onloadstart: null, onprogress: null, onabort: null, onerror: null, onload: null, ontimeout: null, onloadend: null, addEventListener: 'Function<addEventListener>', removeEventListener: 'Function<removeEventListener>', dispatchEvent: 'Function<dispatchEvent>' }, responseURL: 'http://localhost:55001/plone/++api++/', status: 403, statusText: 'Forbidden', responseType: '', response: '{\n "error": {\n "message": "Disallowed subobject type: Folder", \n "type":
|
Run npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone && pnpm --filter @plone/client test
Process completed with exit code 1.
|
Loading