@mcp-abap-adt/connection 20.1.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -202,6 +202,40 @@ function withoutContextCookie(cookie) {
202
202
  var statefulRequest_js_2 = require("./statefulRequest.js");
203
203
  Object.defineProperty(exports, "isStatefulRequest", { enumerable: true, get: function () { return statefulRequest_js_2.isStatefulRequest; } });
204
204
  /** A 404 there means the system has no such endpoint, not that it is unwell. */
205
+ /**
206
+ * A response's headers as fields, or none. They come from outside the type
207
+ * system: whatever is not a plain object of fields is no headers at all.
208
+ */
209
+ function headerFields(headers) {
210
+ return isFields(headers) ? headers : undefined;
211
+ }
212
+ function isFields(value) {
213
+ return typeof value === 'object' && value !== null && !Array.isArray(value);
214
+ }
215
+ /** The headers of the response a failed request carries, or none. */
216
+ function refusalHeaders(error) {
217
+ if (typeof error !== 'object' || error === null || !('response' in error)) {
218
+ return undefined;
219
+ }
220
+ const response = error.response;
221
+ if (typeof response !== 'object' ||
222
+ response === null ||
223
+ !('headers' in response)) {
224
+ return undefined;
225
+ }
226
+ return headerFields(response.headers);
227
+ }
228
+ /**
229
+ * The CSRF token a response's headers carry: a non-empty string, else none —
230
+ * an array, a number or an empty value is no token.
231
+ */
232
+ function csrfTokenIn(headers) {
233
+ const fields = headerFields(headers);
234
+ if (fields === undefined)
235
+ return undefined;
236
+ const token = fields['x-csrf-token'];
237
+ return typeof token === 'string' && token !== '' ? token : undefined;
238
+ }
205
239
  function absentEndpoint(error) {
206
240
  const status = error
207
241
  ?.response?.status;
@@ -643,84 +677,75 @@ class HttpTransport {
643
677
  // BASIS < 7.52 has no /sap/bc/adt/core/discovery.
644
678
  `${base}${csrfConfig_js_1.CSRF_CONFIG.FALLBACK_ENDPOINT}`,
645
679
  ];
646
- const retries = context.retries ?? csrfConfig_js_1.CSRF_CONFIG.RETRY_COUNT;
647
- const delay = context.retryDelayMs ?? csrfConfig_js_1.CSRF_CONFIG.RETRY_DELAY;
648
680
  let last;
649
681
  for (const [index, url] of endpoints.entries()) {
650
- // The fallback exists for a system that HAS no
651
- // `/sap/bc/adt/core/discovery` — BASIS < 7.52 — which the server says by
652
- // answering 404 there. Trying it after a refused connection or a network
653
- // asks a host that is not answering to answer a different path, which
654
- // doubles the wait before the caller is told what is actually wrong.
682
+ // One request per endpoint, and no delay: a failed request is its own
683
+ // error, and asked again a host that refused the connection or answered
684
+ // 500 says nothing new. The second endpoint is not a retry — it exists
685
+ // for a system that HAS no `/sap/bc/adt/core/discovery` (BASIS < 7.52),
686
+ // which the server says by answering 404 there. Asked after a refused
687
+ // connection or a network error, it would ask a host that is not
688
+ // answering to answer a different path.
655
689
  if (index > 0 && !absentEndpoint(last))
656
690
  break;
657
- for (let attempt = 0; attempt <= retries; attempt++) {
658
- try {
659
- // Authorized per attempt: a provider may renew behind the call.
660
- const auth = {};
661
- await context.authorize(auth);
662
- const response = await this.send({
663
- method: 'GET',
664
- url,
665
- headers: {
666
- ...auth,
667
- ...context.extraHeaders,
668
- ...csrfConfig_js_1.CSRF_CONFIG.REQUIRED_HEADERS,
669
- },
670
- });
671
- // Handed up BEFORE the token is read: the cookies are the session,
672
- // and a fold that only happened on success would lose the session a
673
- // tokenless answer still opened. And before the fold: an answer the
674
- // connection refuses as a gone session's throws here, and nothing
675
- // of it reaches the jar.
676
- context.observe(response.headers);
677
- this.ingest(response.headers);
678
- const token = response.headers['x-csrf-token'];
679
- if (token) {
680
- this.token = token;
681
- this.logger?.debug('CSRF token obtained');
682
- return;
683
- }
684
- last = new Error(csrfConfig_js_1.CSRF_ERROR_MESSAGES.NOT_IN_HEADERS);
691
+ try {
692
+ // Authorized per request: a provider may renew behind the call.
693
+ const auth = {};
694
+ await context.authorize(auth);
695
+ const response = await this.send({
696
+ method: 'GET',
697
+ url,
698
+ headers: {
699
+ ...auth,
700
+ ...context.extraHeaders,
701
+ ...csrfConfig_js_1.CSRF_CONFIG.REQUIRED_HEADERS,
702
+ },
703
+ });
704
+ // Handed up BEFORE the token is read: the cookies are the session,
705
+ // and a fold that only happened on success would lose the session a
706
+ // tokenless answer still opened. And before the fold: an answer the
707
+ // connection refuses as a gone session's throws here, and nothing
708
+ // of it reaches the jar.
709
+ context.observe(response.headers);
710
+ this.ingest(headerFields(response.headers));
711
+ const token = csrfTokenIn(response.headers);
712
+ if (token !== undefined) {
713
+ this.token = token;
714
+ this.logger?.debug('CSRF token obtained');
715
+ return;
716
+ }
717
+ // A 200 without a token is not an absent endpoint: the fallback is
718
+ // not asked, and this is the error.
719
+ last = new Error(csrfConfig_js_1.CSRF_ERROR_MESSAGES.NOT_IN_HEADERS);
720
+ }
721
+ catch (error) {
722
+ // The provider's refusal to authorize leaves as it is: it is its
723
+ // word. So does a session verdict — the connection's own, thrown by
724
+ // `authorize` or `observe`: it carries no response, so nothing below
725
+ // folds anything of it in or reads it as an absent endpoint.
726
+ if (error instanceof authErrors_js_1.AuthRefusedError)
727
+ throw error;
728
+ last = error instanceof Error ? error : new Error(String(error));
729
+ const headers = refusalHeaders(error);
730
+ if (headers !== undefined) {
731
+ // A refusal can still carry the cookies that matter — handed up
732
+ // first, so one the connection refuses is not folded in.
733
+ context.observe(headers);
734
+ this.ingest(headers);
685
735
  }
686
- catch (error) {
687
- // Not a failed exchange: see `isFatal`. Leaves immediately, past the
688
- // retries and past the fallback endpoint. So does the provider's
689
- // refusal to authorize: it is its word, and asking again only asks
690
- // it again.
691
- if (error instanceof authErrors_js_1.AuthRefusedError || context.isFatal?.(error)) {
692
- throw error;
693
- }
694
- last = error instanceof Error ? error : new Error(String(error));
695
- const response = error.response;
696
- if (response?.headers) {
697
- // A refusal can still carry the cookies that matter — handed up
698
- // first, so one the connection refuses is not folded in.
699
- context.observe(response.headers);
700
- this.ingest(response.headers);
701
- }
702
- // A refused logon, named as one — after its cookies are in, and
703
- // without a retry: asking again with the credential just refused
704
- // tells the system nothing new. What to do about it is not the
705
- // wire's to decide.
706
- if ((0, IAdtTransport_js_1.refusalOf)(error)?.status === 401) {
707
- throw new authErrors_js_1.WireLogonError(error, 401);
708
- }
709
- if (response?.headers) {
710
- // …and the token itself. SAP answers 405 to a GET on some
711
- // endpoints and puts the token in the header anyway, and other
712
- // refusals carry one too. A retry would throw away a token the
713
- // server already handed over.
714
- const onError = response.headers['x-csrf-token'];
715
- if (onError) {
716
- this.token = onError;
717
- this.logger?.debug('CSRF token arrived on a refusal, and is kept');
718
- return;
719
- }
720
- }
736
+ // A refused logon, named as one — after its cookies are in. What to
737
+ // do about it is not the wire's to decide.
738
+ if ((0, IAdtTransport_js_1.refusalOf)(error)?.status === 401) {
739
+ throw new authErrors_js_1.WireLogonError(error, 401);
721
740
  }
722
- if (attempt < retries) {
723
- await new Promise((resolve) => setTimeout(resolve, delay));
741
+ // …and the token itself. SAP answers 405 to a GET on some endpoints
742
+ // and puts the token in the header anyway, and other refusals carry
743
+ // one too.
744
+ const onError = csrfTokenIn(headers);
745
+ if (onError !== undefined) {
746
+ this.token = onError;
747
+ this.logger?.debug('CSRF token arrived on a refusal, and is kept');
748
+ return;
724
749
  }
725
750
  }
726
751
  }
@@ -109,22 +109,13 @@ export interface IAdtEstablishContext extends IAdtSessionContext {
109
109
  *
110
110
  * Handed up BEFORE the wire folds the answer in. It may throw a session
111
111
  * verdict — the answer belongs to a session that is gone — and the wire then
112
- * folds nothing of it and ends the exchange (`isFatal`).
113
- */
114
- observe: (headers: unknown) => void;
115
- /** How many times to ask again. Absent means the transport's own default. */
116
- retries?: number;
117
- /** Milliseconds between attempts. Absent means the transport's own default. */
118
- retryDelayMs?: number;
119
- /**
120
- * Which failures must not be retried.
112
+ * folds nothing of it and ends the exchange: the verdict carries no
113
+ * response, so it is neither folded in nor read as an absent endpoint.
121
114
  *
122
- * A verdict about the session — "the one we were on is gone" — is not a
123
- * failed exchange: retrying would observe the SAME new session, read it as
124
- * unchanged, and lose the replacement for good. The wire cannot tell those
125
- * apart, so it asks.
115
+ * The exchange is one request, never repeated and never delayed; the second
116
+ * endpoint is asked only after the first answered that it does not exist.
126
117
  */
127
- isFatal?: (error: unknown) => boolean;
118
+ observe: (headers: unknown) => void;
128
119
  }
129
120
  export interface IAdtTransport {
130
121
  /** For logs, so which transport ran is never inferred from behaviour. */
@@ -174,6 +165,12 @@ export interface IAdtTransport {
174
165
  * on the error — that is the shape the request path classifies against, and
175
166
  * a transport that resolved instead would turn a 401 into a success with a
176
167
  * logon page in the body.
168
+ *
169
+ * A wire that loses the session it carries — `RfcTransport` when an RFC
170
+ * error ends the stateful conversation — throws `WireSessionLostError`, and
171
+ * decides nothing else: the connection reports the session lost and the
172
+ * instance is spent. It opens no other session in its place. The HTTP wires
173
+ * never throw it: SAP says so in an answer there.
177
174
  */
178
175
  send(request: IAdtTransportRequest): Promise<IAdtTransportResponse>;
179
176
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"IAdtTransport.d.ts","sourceRoot":"","sources":["../../src/connection/IAdtTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,4DAA4D;AAC5D,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;IAC7C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,gEAAgE;AAChE,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC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C,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD,0EAA0E;IAC1E,SAAS,IAAI,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;;;OAMG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAC;IAE3C,oDAAoD;IACpD,aAAa,IAAI,IAAI,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACrD,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;CAC3B;AAED,MAAM,WAAW,eAAgB,SAAQ,aAAa;IACpD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,GAAG,IAAI,CAQtE"}
@@ -58,7 +58,15 @@ import type { IAdtEstablishContext, IAdtSessionContext, IAdtTransportRequest, IA
58
58
  export interface IRfcConversation {
59
59
  open(): Promise<void>;
60
60
  close(): Promise<void>;
61
- call(fm: string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
61
+ /**
62
+ * `options.passport`, when given, is the SAP passport sent with this call
63
+ * only (`@mcp-abap-adt/sap-rfc-lite` >= 0.4.0). A conversation written for
64
+ * two arguments still conforms: it is never handed a third unless a request
65
+ * carried a passport.
66
+ */
67
+ call(fm: string, params: Record<string, unknown>, options?: {
68
+ passport?: Buffer | undefined;
69
+ }): Promise<Record<string, unknown>>;
62
70
  readonly alive: boolean;
63
71
  /**
64
72
  * Ends the ABAP session context and keeps the connection open
@@ -225,6 +233,18 @@ export declare class RfcTransport implements IOnPremTransport {
225
233
  * answers, whatever the answer.
226
234
  */
227
235
  private carryOnThrowaway;
236
+ /**
237
+ * The stateful conversation is `conversation` no more: the library released
238
+ * it, so there is nothing left to close, and a close would only reject.
239
+ */
240
+ private dropSession;
241
+ /** The kept stateless conversation is `conversation` no more. */
242
+ private dropStateless;
243
+ /**
244
+ * A conversation used for one call, closed — unless an RFC error ended it:
245
+ * the library has released it, and a close would only reject.
246
+ */
247
+ private closeUnlessReleased;
228
248
  /**
229
249
  * A new conversation, logged on with `parameters`. The logon takes time
230
250
  * (~0.5 s on E19); if the wire was closed meanwhile, the conversation is
@@ -1 +1 @@
1
- {"version":3,"file":"RfcTransport.d.ts","sourceRoot":"","sources":["../../src/connection/RfcTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EACV,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAa5B,sFAAsF;AACtF,MAAM,WAAW,gBAAgB;IAC/B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACtB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,IAAI,CACF,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACpC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CACpC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,KACpC,gBAAgB,CAAC,GAAG;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA4JxD,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC;;;;;;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