Repository navigation
Probe HttpHeaders.Contains('') shapes and HttpContent stream writes (al-runner 8728) - #1556
Open
StefanMaron wants to merge 6 commits into
Open
StefanMaron wants to merge 6 commits into
StefanMaron wants to merge 6 commits into
Conversation
…hapes (al-runner 8728, 7870) Claude-Session: https://claude.ai/code/session_01B5GPNVCdMf7ByZez1YeU96
…ream write shapes (al-runner 8728, 7870) Handler values are asserted on BC 29 only (Linux images of 27 and 28 do not call the handler). The AddCertificate setting of A4 gets its own test: its observation did not fit one message. Claude-Session: https://claude.ai/code/session_01B5GPNVCdMf7ByZez1YeU96
…ntains('') (al-runner 8728)
Claude-Session: https://claude.ai/code/session_01B5GPNVCdMf7ByZez1YeU96
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.
Probes for
HttpHeaders.Contains('')on every header collection a program can reach, and for writes toHttpContentfrom a stream. AL Runner needs these cells for aldevtools/BusinessCentral.AL.Runner#8728 (and #7870).This PR also carries the cells of #1424 (Probe empty HTTP header names and stream writes, by bstaeheli):
tests/al-language/http/HttpHeaders.alandtests/al-language/http/content/HttpContent.alare that diff, applied onto master. If #1424 merges first, this PR's diff shrinks to the three new files.New files
tests/al-language/http/headers/ContainsEmptyShapes.alContains('')after add/remove, clear, Content-Type removed and added again, one or two text writes, a stream write, write then clear, a copy of written content, response content never sent,TryAddWithoutValidation,Set-Cookie, client settings (old and new handle,AddCertificate), secret content, content afterReadAstext and stream, request content assigned from written or fresh content, failed call response and request, text writes afterSend(BC 28 and later)tests/al-language/http/content/WriteStreamShapes.alReadAsthen remove or clear, re-added types, other headers next to it, never-written content, body handed out, secret header, request without content, assigned stream, stream already given to another content, stream of a record that is gone, stream not on a BLOB field, second stream write, stream position after the write (fresh, partly read, content read), stream write over secret content,ReadAstext with other charsetstests/al-language-onprem/http/HttpHandlerResponseShapes.al#if BC29PLUS, the same pattern asAyHttpHandler.al); older majors discard the observation.How the values were measured
All values were observed on local BC containers (27.5, 28.5, 29.0) and converted with the corpus writer tools. No value was typed by hand. Cells that only exist on BC 28 and later are behind
#if BC28PLUS.https://claude.ai/code/session_01B5GPNVCdMf7ByZez1YeU96