Repository navigation
The ADT surface: Eclipse reaches open-steamgate over HTTPS and over RFC - #1
Merged
Merged
Conversation
Backlog 8.7, built. It caught a leak within the hour, in the repository it was written for, and the leak was mine. A 746-byte logon template went into a commit on open-rfc-go carrying the captured system's host name, its instance, its address, its logon string and its user. An hour earlier I had scanned that very file for identifiers and called it clean. The scan looked for runs of printable ASCII; every string in the structure is UTF-16LE, and a NUL after each character is enough to hide a host name from a grep and from an eye. So the tool does the one thing that would have worked: it builds every byte view a file plausibly has — the text, the hex runs inside it, the base64 blocks, each read as ASCII and again as UTF-16LE — and matches over all of them. A pattern list that only ever sees one encoding reports clean. A sixth identifier was not text at all. The last six bytes of a session GUID are the client's own IPv4, packed into the uuid's node field, which is how a LAN address travels through a public repository without spelling itself out. Private addresses are matched in binary too, on the two-byte prefixes only: 10.x is one byte, any long blob of random-looking bytes yields one per 256, and the first run over the Go repository turned up seven of those and nothing real. A check that cries wolf is read once and skipped after. The identifier list is gitignored, because a list of what must not be published cannot itself be published, and the tool says so and exits 2 rather than passing quietly when it is absent — half a check reporting success is the failure being prevented. The allowlist is tracked, because it holds a judgement rather than a secret, and every entry needs a reason so that an exception can be told from a way of making the build green. Its first two catches were both me. I scrubbed the template and wrote the host name and the address into the comment explaining the scrub; then I wrote the address into this tool's own comment. Nothing was pushed either time. The rule has been in CLAUDE.md since the first week and has never once been what stopped a leak — attention was, both times, and attention is the thing that runs out. Hook in .githooks/pre-commit for the fast answer, CI in leak-scan.yml because a hook is per-clone and silently absent on a fresh one. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Alice's call, and it is the better shape: commit freely to a local branch, clean the history before it goes anywhere. A local commit is not published and blocking one buys friction and nothing else. But "clean it before merging" is a step somebody has to remember at exactly the right moment, which is the same shape as the rule that has already failed twice here. So the check moves to the moment that is not a matter of remembering. pre-push scans the range actually being pushed, commit by commit, because a leak introduced in one commit and scrubbed in the next leaves a clean working tree and a history that still carries it — and it is the history that gets published. Commit messages are scanned too; they are as public as the files and are the easier place to paste an address into. pre-commit stays, and now only tells you. Fast feedback, no veto. Demonstrated end to end on a scratch repository: a leak in an intermediate commit that a later commit removed passes `--all` and is caught by `--range`, which names the commit; `git push` is refused; a squash makes the history clean; the push then goes through. The hook looks for the scanner next to itself before looking in the repository, so one core.hooksPath covers the sibling Go clones, which take the same captures and have no copy of this tool. open-rfc-go now points at it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
…acked Found by asking what a decoded call actually held instead of what it lacked. "The call carries no REQUEST parameter" is equally consistent with a client that sends none and a decoder with no case for the one it sent, and the decoder skips unknown tags silently and by design, so the error could not tell those apart. Listing the tags on the wire could, and did, in one round trip. The parameters are not CPIC name/value fields and not the xRFC recursive parameter this project expected. They travel in 0x4000/0x4001/0x4002/0x4004: the direction is the tag, and the second byte of 0x4000 says whether the payload is compressed. That flag correlates with the payload's magic across 762 captured frames without one exception — 382 requests plain, 380 responses packed. The payload is SAP Binary XML, BXML 0.7, carrying an ordinary asx:abap document whose root element is the parameter's name. So the note that "the name is only in the root element, never on the wire" had the shape right and the encoding wrong: the name is in the document, and the document is binary. Decoded, a request holds METHOD, URI, VERSION and the header fields, which is exactly what an ADT façade needs and nothing more. What is left is a reader, a writer, and one question worth stating plainly because it decides how much work the writer is: the compression flag is ours to set, so a response may be able to go out uncompressed. If Eclipse honours that, no compressor is needed — which matters, because the SAP-LZH writer is in none of these repositories, only the reader. One attempt settles it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
…on asked Alice's instruction, and the right one: stop guessing at the live system and go read the recording of the time everything worked. The grammar is complete for the request side, and the check is built into it — a parser must consume a document to its last byte, so 384 out of 384 fully read is a claim that can fail. It failed twice getting there, both times the same mistake: a byte assumed to be data. The namespace reads `+ 1a "http://www.sap.com/abapxml"` and the colon after it looks like the end of the URI; it is a token. Then `B`, which opens a request body and had gone unseen because only some requests carry one. Lengths are code points written as UTF-8, which is what the header's "ENC utf-8" turns out to mean literally: c2 97 is 151, c3 84 is 196, both against the measured length of the string that followed. Not guessable from a structure diagram; it falls out of measuring one field. And the session itself answers a question that has been open since the façade work started: what does Eclipse actually ask for. 384 calls, 39 shapes, while opening a program's source and a function group's, running unit tests and previewing a table. Over a quarter of it is /runtime/dumps at 108 and /runtime/systemmessages at 54, both polled on a timer and both empty in a healthy system, so answering them with an empty list sheds most of the load before anything interesting is built. /debugger/listeners is 72 POSTs of long poll. And /security/reentranceticket is asked for 8 times, which settles a guess: it was on the list of sixteen unimplemented resources as a supposition and it is real. The captures stay in .local/ with a README, the parser and a probe beside them. Facts here, bytes there. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
An ABAP Cloud Project asks for four things a classic project does not, and with them A4H opened as a cloud system through a TLS terminator: the tree filled, sources opened, and ABAP Unit ran green. Nothing else about the protocol is cloudy. Even the released-objects tree, which looks like the most cloud-shaped thing in the window, is built from virtualfolders, search and releasestates — resources this façade already served. The logon is the part that had been feared, remembered as a challenge to perform for a ticket. It is neither OAuth nor PKCE. Eclipse opens a listener on a loopback port, sends a browser to core/http/reentranceticket with that address, and expects to be sent back to it with a ticket in the query string. The ticket exists only to hand over a session cookie: every request Eclipse made afterwards carried a cookie and no Authorization header at all. So this issues the ticket directly and admits everyone, which is the honest behaviour for a façade with no user store — inventing one would be pretending to an authority it does not have. It also means the port must not be exposed anywhere that matters, and the redirect is restricted to loopback, because without that it is an open redirect that mints a credential on its way out. That redirect does not break adt-session's rule that nothing here ever redirects. That rule is about requests for data, where a client reads a redirect as having been logged out. A logon that redirects is the logon working. The fourth resource, /sap/public/bc/icf/virtualhost, needs no route: 404 is what A4H answers and the wizard carries on. There is a test pinning that the absence is deliberate rather than forgotten. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
An ABAP Cloud Project could log on to the façade and then could not write anything: every POST came back 403 with "fetch a token and retry", every re-fetch produced a token that was refused in turn. The client was doing everything right. Two cookies name the same session here. sap-contextid carries statefulness, and SAP_SESSIONID_* is issued at logon. The middleware read only the first. A cloud project never asks for a stateful session, so it never keeps the context cookie — measured across a whole session, every request came back with SAP_SESSIONID_* and sap-usercontext and not once with sap-contextid — and so every request arrived looking like a new client, opened a new session, and was handed a new token. The token the client had just been given always belonged to a session that no longer existed. Re-fetching could not converge because the fetch made a new session too. So the session cookie now answers when the context cookie is absent, which is also how the real thing behaves: A4H binds its token to the session it issued at logon. The context cookie still wins when present, because that is the one carrying statefulness. The logon also stopped writing the reentrance ticket over that cookie. The middleware had already issued one naming a real session and the ticket identifies nothing, so overwriting it guaranteed the mismatch above even after the lookup was fixed. The ticket's whole life is the redirect. The test pins the shape rather than the symptom: a client that returns only the session cookie keeps its token across a hop and may write with it. It fails against the previous code. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
A client asks for these before it will open anything, and 404 makes it report an error where the real answer is that there is nothing to report. The proportions are the argument. Over a captured working session, 108 calls went to runtime/dumps and 54 to systemmessages — a quarter of everything, polled on a timer, every one of them an empty feed because nothing had gone wrong. An empty feed is not a stub here; it is correct, and stays correct for as long as nothing dumps. The debugger's long poll is simpler still: A4H answers 200 with no body at all, to GET, POST and DELETE alike, and nothing here can be debugged either. repository/typestructure is the one that blocked everything, with the client stopping at "Pre-loading workbench object types". It is answered from TYPES rather than copied from a system: a borrowed list would advertise object types this façade does not serve, and each would 404 on the first click. The test pins that — every URI template it names must be a path under the façade. Its body looked like 16 KB of binary and nearly went down as a hard case. It was gzip, applied by the ICM, wrapping 359 KB of ordinary asx:abap. Worth checking the simple thing first. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
…ong on the label A cloud project builds its tree from virtualfolders and not from nodestructure: measured, 19 POSTs to one and none to the other. Asked this façade for a tree, it got nodestructure back and reported "No content-handler found … data-type RepositoryObjectTreeContent". The client was neither outdated nor missing a plug-in, which is what it guessed; it had asked for one thing and been handed another. The model is a filter rather than a hierarchy. The client sends what is already chosen — this package, that type — and the facets still to expand. A non-empty facetorder asks for the folders of its first facet and an empty one asks for the objects, so a single resource serves every level and the shape of the tree is the client's choice. Then three failures that were all the same mistake in different places. Collections had no atom:category, and the client said so precisely: "Error parsing collection … categories=[]". The terms and schemes now come from A4H's own discovery document, including the two that spell repository as "respository". The typo is preserved on purpose — a client matching the string would not forgive the correction. The polled feeds were advertised as collections. A4H advertises none, and a collection with no category is one a client cannot parse, so each of them was an error line of its own making. And nodestructure answered application/vnd.sap.adt.repository.nodestructure.v1 +xml to a client that had asked for application/vnd.sap.as+xml with dataname=com.sap.adt.RepositoryObjectTreeContent. The body was already the asx:abap with TREE_CONTENT that the client wanted. Only the label was wrong, and a correct document was refused for it. The dataname is the client's own name for the shape it expects, so it is echoed back. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
A4H advertises packages v2 and v1, newest first, and answers at whichever the client asked for. This offered v1 alone, which tells a recent client there is nothing here it can open — and it said so: "/sap/bc/adt/packages/ %24osd_zork" is not installed. The document is unchanged; only the label it is offered under is. What this does not fix, and should not, is a cloud project double-clicking a package and being told SAP GUI is unavailable. That is Eclipse being accurate: a cloud project has no SAP GUI, and a real cloud system answers the same way. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
It went down for exactly that. The backend was restarted underneath it, the forwarded socket reset, and an unhandled ECONNRESET on a stream with no listener killed the process. The error handler covered the request to the backend and nothing else: a reset partway through an answer, a client walking away mid-request — which Eclipse does routinely when it cancels a long poll — and a TLS connection failing all reached the top level. An instrument that dies when the thing it watches hiccups is worse than no instrument, because it fails silently and the next reading is simply absent. This one had already cost a confusing "502 Bad Gateway" in a live session, written off at the time as a restart rather than looked into. Demonstrated on the case that caused it: the backend killed under a running proxy, the proxy still listening, and serving again when the backend came back. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
… reads Two fixes, both found by running the same click against a real system beside this one — Alice's idea, and worth more than the evening spent guessing from an old capture. Search never reached this façade at all. Not a 404, not a bad answer: nothing arrived, while the identical search against A4H went out and came back. The difference is adtcomp:templateLinks on the search collection, a URI template the client fills in. Without one it has no request to make and fails before the network, reporting "Outdated content handler" — which is why the dump was empty and why nothing here could have been at fault in the way it looked. The templates are copied whole rather than reduced to the parameters this façade honours. A client fills in what it wants and an unknown parameter is ignored here, so offering fewer would only teach it to ask for less. The package editor crashed on "Cannot invoke XMLGregorianCalendar.toGregorianCalendar() because changedAt is null". A4H's package carries changedAt, createdAt, changedBy, createdBy, responsible, version and masterLanguage; this carried a name, a type and a description. The client does not treat them as optional, so the document was not smaller than the real one, it was broken. Nothing here has an author or an edit history — the objects are files on disk — so the values say so instead of inventing a plausible person and a plausible afternoon: the façade's own name, and the epoch. Both stable on purpose. A timestamp that moved per request would tell a client the package had just been edited, every time it looked. Categories added for the four collections still reporting parse errors, from the same source as the rest. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Answering with a name, a type and a description says what a package is. It does not open one. The editor builds its panels from the document's elements and, finding nothing to bind, failed with "Failed to create the part's controls" — a UI error that says nothing about the document behind it. Before that it had crashed on a null changedAt. Neither time was the document a smaller version of the real one; both times it was unusable. A4H's answer has ten elements where this had one: attributes with a dozen flags, superPackage, applicationComponent, transport with its software component and transport layer, useAccesses, packageInterfaces, and subPackages with a ref each. The structure here is now that structure, and the values are this façade's own truth — nothing has an application component, a transport layer or a software component, and saying so with isVisible="false" is what turns a missing panel into a hidden one rather than a broken one. The value help links come with the resource behind them. Advertising a dropdown and not serving it is a 404 waiting for the first person to open it; serving an empty list says "this system has none", which is true, and the dropdown opens empty as it should. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
"Activation is not supported on this project" is a conclusion the client reaches from the discovery document, not an answer any resource gave it. Two things were missing from that document and both are cheap. checkruns/reporters is its own collection and its own resource, asked for before a single check runs. Without it a client concludes that checking is unavailable, and says so about activation too, because the two travel together. One reporter is enough, over the types this façade actually holds: the list is what the client offers in its own UI, so naming a type that is not here would advertise a check that can only come back empty. activation/inactiveobjects likewise. Nothing here is ever inactive — an object is what its file says and there is no inactive version to hold — so the empty list is the true answer, and it is the resource's absence rather than its content that the client was reporting. And the empty element matters. A4H emits adtcomp:templateLinks on every collection, empty where it has no templates, while this omitted it entirely. Emitting it always is one character of difference to read and, on the evidence of what the client does with a collection it cannot parse, not a cosmetic one. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
…hing" Three failures that looked unrelated turned out to be one document, and no request this façade answered was wrong in any of them — the client had decided before asking. The graph was an empty element, deliberately, and there was a test asserting it stayed that way. The reasoning behind it was careful: a compatibility graph is a system granting a client the use of features, OSD had measured no such grant, so claiming nothing was the honest answer. The conclusion was wrong. A client reads an empty graph as a system that supports nothing and acts on it: this one deleted its content handler for object references and reported "Outdated content handler ... was deleted" whenever the search dialog opened, concluded "Activation is not supported on this project", and stopped filling in the contents of packages. The element was also named adtcomp:graph where a client looks for compatibility:graph. The prefix is arbitrary; the local name is not. The graph now declares the features there are resources for, and no others. Claiming a feature invites a client to use it, and a claim that breaks on the first click is worse than a missing one, which a client simply works around. The test guards that property rather than the old emptiness: everything declared must have something behind it, and codeCompletion — which this façade does not serve — must not appear. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Declaring the nodes was not enough and the reason is the edges. An obligatory edge says a feature is incomplete without its partner: OO/classes requires classModelXmlSchemaConform, PROGRAMS/programs requires programsXmlSchemaConform, CORE/checkruns requires checkrunsVendorContentType, ACTIVATION/activate requires CORE/xmlFormat. A client reading a feature whose obligations are absent treats it as unusable, which is what "Outdated content handler ... was deleted" and "Activation is not supported on this project" were both saying, from one cause. The set here is the obligatory closure of what this facade serves, computed from the system own edges rather than assembled by hand: start from the features there are resources for and add whatever they are declared to require, transitively. Nineteen nodes became thirty-two. The names ending XmlSchemaConform are promises about the shape of documents rather than about which resources exist, and they are made knowingly. A client that finds them false will say so, and there is a real system beside this one to compare against when it does. The test guards the property: every obligation declared must be met by something also declared, or the declaration is worse than silence. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Alice's push, and the right one: replay every path the real system answered against this façade rather than waiting for a client to trip over the next gap. Twenty-nine resources came back 404 while being asked for on every project open, and finding them one at a time was costing a person a round trip each. Eight of them are answered now — object types, release states, object property values, package settings, the feed list, the user list, ABAP Unit metadata, logoff and session deletion. Each says what is true here rather than what a system would say: the release states are empty because nothing here is released in that sense, the user list has one entry because there is no user store behind this, and the object types are the ones this façade holds rather than a system's three hundred, because a filter for a type that cannot be here finds nothing while still being offered. The large one is the class. GET /oo/classes/<name> is how Eclipse opens a class: it reads class:abapClass and follows the source link. This answered with an objectStructureElement, which is the answer to a different question. But that answer was not a mistake — there is a test for it, written when a class would not open in VS Code, because abap-adt-api calls objectStructure() on exactly this address. Two clients, one URL, two documents, and both right. They are distinguishable: Eclipse sends Accept: application/vnd.sap.adt.oo. classes.v4+xml and abap-adt-api does not. So the type asked for is the type returned, which is what the header is for, and neither client loses. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
"Are we sure the server was restarted?" — asked after a deploy that had in fact landed, and the only way to answer was to probe three unrelated resources and reason about what their shapes implied. That is a chain of inference where there should be a fact. The digest is over the façade's own sources rather than the start time, so it changes when the answers change and not when the process merely restarts — which is the question actually being asked. The bridge grew the same stamp earlier today for the same reason, and this should have followed then. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Two wrong versions before the oracle settled it, and the oracle had been running the whole time. The first served the object structure at the class's own address, on a note saying abap-adt-api expects one there — written when a class would not open in VS Code. Routing the path was the fix then; the document was a guess that came along with it. The second was mine: negotiate on Accept, because Eclipse asks for application/vnd.sap.adt.oo.classes.v4+xml and abap-adt-api sends */*, so surely they want different things and both can be right. They do not want different things. VS Code, handed the structure, answers "Operation not supported for object CLAS/OC CL_ICF_TREE" — it recognises the type and refuses, because it wanted a class document too. And A4H, asked at that address with */* and with the versioned type, returns class:abapClass to both: the real system does not negotiate here at all. So the negotiation was a dialect no system speaks, invented to reconcile a conflict that did not exist. One request to the system beside us would have said so, and building the theory instead of asking is the mistake worth remembering — the comparison proxy had been up for hours. The structure keeps its own address under /objectstructure, which is where a client that wants one asks. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Package contents did not appear, and the objects were in the answer the whole time. The document has TREE_CONTENT, CATEGORIES and OBJECT_TYPES; this sent the first. The client had the objects and nowhere to put them, so a package looked empty rather than looking wrong. The grouping is data, not structure, which is the part that is not obvious. The folders a client shows — Classes, Interfaces, Programs — are themselves rows in TREE_CONTENT with a DEVC/xx type, an empty name and a NODE_ID. OBJECT_TYPES gives each folder its label and ties each real type to a category; CATEGORIES gives the categories theirs. Measured against A4H rather than inferred, which the note standing here asked for: it said the shape was unconfirmed and meant to be corrected. The folder codes are the ones a real system sent. A type with no measured code is emitted without a folder rather than under an invented one — an ungrouped object is visible and slightly untidy, and a wrong DEVC code is a folder a client may refuse to draw at all. One run of the full suite failed on an activation test that passes alone and passed twice more in full. Not reproduced, not explained, not called flaky. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
A class would not open in either client, and the document looked right: root element, attributes, links, includes. The paths were absolute. A client resolves these against the object's own address, so an absolute path resolves somewhere else or nowhere. Measured on the system: the main include is sourceUri="source/main", the structure link is href="objectstructure", both relative, and there is no plain source link on the root at all. The main source is an *include* with includeType="main" — which is the part that is not obvious, and the reason a client that finds no such include reports "Operation not supported for object CLAS/OC" rather than a missing file. Also from the sweep: the tree's folder labels now come from OBJECT_TYPES, so Classes and Interfaces are named rather than shown as <CLAS/OC>. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Against a real system a class appears in VS Code as a folder holding .clas.abap beside .clas.locals_def.abap and its siblings, built from the include list in the class document. This listed only main, so a class was one flat file. The store already knew the file suffixes; nothing asked it which of them exist for a given class. It does now, by looking: an include is listed when its file is there. The alternative — listing all five always — would put files in the tree that open empty, which is worse than a short list. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Every feature this façade declared was dead: activation refused before any request went out, the search content handler read as outdated, the tree never loaded. Resources were mounted, the graph carried the nodes and met every obligatory edge, and none of it was ever asked for. The client's own code says why. GraphAnalyzer.isNodeAvailable resolves COM.SAP.ADT.COMPATIBILITY/compatibilityAvailable before the node it was asked about and returns false for everything if that node is absent from the graph this system served, and Node.isAvailable treats a node with no entry for the provider as unavailable rather than unknown. So a graph missing that one line reads exactly like the empty graph it replaced — and it fails client-side, silently, before a socket is opened, which is why the server logs looked clean throughout. The oracle carries it as one node among 207, and the reason it was never copied is that it looks like a tautology. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Three findings from the first run where the client actually reached us. The refusals were two different shapes. Object 404s went out as text/plain while the catch-all beside them served exc:exception, and the client builds a ResourceException from the body and reads its exception data without checking — a body it cannot parse leaves that null. So expanding a package died on "Cannot invoke IExceptionData.getNamespace()" and the neighbouring nodes sat on "Loading repository tree ..." forever: the failure never finished failing. Every refusal is a document now, with type ids taken from the client's own vocabulary rather than invented. PROJECTEXPLORER/treePath was a promise with nothing behind it. It names repository/nodepath, which this façade does not serve, and a client that believes it asks for that while expanding a package instead of falling back to nodestructure. The other three nodes in that namespace stay: each has a resource. And a class is expandable. vscode-abap-fs builds a file name from the object it is showing, and its AbapClass carries no extension of its own, so a class that is not expandable takes the base ".abap" — which is why the tree read ZCL_X.abap. The ".clas.abap" belongs to the class's main include, which exists only once the class is a folder. The interface beside it was right all along because AbapInterface does carry its own extension, and that is what said the difference was expandability rather than the type code. Eclipse expands a class node too, so nodestructure now answers for one, with the includes that are on disk and no others. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
Three collections went out with none: abapunit/metadata, informationsystem/objecttypes and informationsystem/releasestates. The client's DiscoveryContentHandler calls category.getScheme() without a null check, so one such entry throws NullPointerException and the whole discovery document fails to deserialize — not merely that collection. That is why every package below sat on "Loading repository tree ..." while the errors in the log named three resources nobody had clicked. Terms and schemes are the system's own, "respository" included: the misspelling is in SAP's scheme, and correcting it would invent one nobody looks for. Checked over all collections rather than per resource, because the cost of a missing one is not local to it. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
abap-adt-api parses a class:include with links: e["atom:link"].map(xmlNodeAttr) — .map straight on the property, where the class root beside it goes through its xmlArray helper first. An XML-to-object parser gives an object for a single child and a list for several, so exactly one link there is "e.atom:link.map is not a function" and the class will not open. A4H emits four per include and never meets the case, so no comparison against the captures would have found this. The two copied are the ones the system points at the same href: the plain source and its HTML rendering. Only text/plain is distinguished here — that URL answers with the source either way, and the client selects by that type. The other two A4H links, versions and enhancement options, are left out on purpose: nothing here serves them, and a link that 404s is the defect this round was spent removing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01J7JpA3TGT48zBoix3Ut88s
This was referenced Nov 15, 2026
Merged
Merged
This was referenced Nov 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A stock Eclipse ABAP project now reaches this project two ways, and neither of
them knows it is not talking to a SAP system.
Over HTTPS, as a Cloud Project: the
/sap/bc/adt/façade — discovery,identity, the compatibility graph, the package tree, reading, editing,
activation, unit tests, F8, creating and deleting objects. Catalogued from the
server's side in
docs/adt-surface.md.Over RFC, as a Custom Application Server: a project of that kind never
opens an HTTP port at all. It logs on over RFC on the gateway port and tunnels
every ADT request inside one RFC call — on a captured session, 579 KB crossed
the gateway and not one byte crossed the ICM. That path is now complete: logon,
core/discovery,compatibility/graph,discovery,feeds, the object-typelist,
repository/typestructure, fiverepository/nodestructurecalls thatexpand the tree, and
ddic/ddl/sources/<name>plus/source/mainthat open aCDS view with its source. Sixteen 200s and one 304, no errors.
The bridge itself is Go and lives in the sibling
open-rfc-go; nothing here depends on it.
What it took is written down as protocol facts in
docs/adt-over-rfc.md, because four separate thingsrefuse in silence: the dictionary bootstrap Eclipse insists on before it will
call anything, the SAP Binary XML the payload is made of (name references are
index-plus-two, lengths are byte counts written as UTF-8 scalars), the two
response record headers that belong to two connection roles rather than two
protocols, and the CSRF dance, which is the bridge's to do because over RFC the
client has no HTTP session at all.
Also here
docs/backlog.md) withthe standing tree kept below them: A widens what a client may ask — and
the façade's own refusal log writes that worklist, so it is seeded from real
404s; B deepens what the answers are made of; C is a side quest,
answering SAP GUI on the dispatcher port with one static screen.
its expiry written beside it: the compatibility graph now claims
COM.SAP.ADT.SAPGUI, so the client reaches for a SAP GUI that exists insteadof offering one that does not. It converts a dialog that ends the story into
a real client knocking on a real port, which can be recorded and eventually
answered. This is the only promise in that map with nothing behind it, and
the file says so where it is made.
Notes for review
fix/adt-eclipse-wiring, which stopped describing its contentsaround fifty commits ago; renamed on the way up.
carry facts only. The leak scanner ran at push over 1628 files, clean.
npm run leakgates at push rather than at commit, on purpose.🤖 Generated with Claude Code