Skip to content

Release: merge develop into master (1.67 — getcfg/getimg without callActionForModule) - #27

Merged
jorikfon merged 2 commits into
masterfrom
develop
Oct 5, 2026
Merged

jorikfon merged 2 commits into
masterfrom
develop

Conversation

@jorikfon

@jorikfon jorikfon commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Release 1.67: merge develop into master. Merge with a merge commit, as for 1.65 and 1.66; the push to master runs build.yml and publishes the release.

What is in it

Verified before #26 was merged: live A/B on Core develop 0e5316f1 and on Core PR #1169 (body md5 and headers unchanged, 0 TypeError, 0 «already sent» on 12 parallel getcfg). See #26.


Релиз 1.67: getcfg/getimg без callActionForModule() (#22). Телефон получает те же байты и заголовки.

  • Убраны TypeError после тела (Sentry MIKOPBX-N6K, в том числе на 2026.4.47) и гонка «Response was already sent» (MIKOPBX-PWC).
  • Когда файла нет — код 422, при ошибке воркера — 400. Тело JSON прежнее.

callActionForModule() streams the core-format file descriptor and leaves the
content empty. Cores without mikopbx/Core#1167 (all releases up to 2026.4.47)
then pass json_decode('') = null to ModulesControllerBase::handleResponse(array):
a TypeError after the body on every getcfg/getimg (Sentry MIKOPBX-N6K).
The unconditional sendRaw() after it throws "Response was already sent" when
handleFileStreaming() has already answered 404 because a parallel request for
the same MAC removed the file (Sentry MIKOPBX-PWC).

getConfig() and getImg() now send the request to the backend worker themselves,
with the payload callActionForModule() builds, and call sendRaw() only if nothing
was sent yet. File answers are unchanged. With no file (unknown MAC, rejected
image name) the status is 422, on a worker timeout or error 400 (was 200);
the JSON body is the same.
…e-format-f

fix(rest): stream getcfg/getimg without callActionForModule() (#22)
@jorikfon
jorikfon merged commit 735f166 into master Oct 5, 2026
1 check passed
@jorikfon
jorikfon deleted the develop branch October 5, 2026 09:16
@jorikfon
jorikfon restored the develop branch October 5, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant