Skip to content

fix: camex 6.2.0 in the tunnel (2.29.0) - #303

Merged
compot-dev merged 2 commits into
v2from
fix/camex-6.2.0-302
Nov 23, 2026
Merged

compot-dev merged 2 commits into
v2from
fix/camex-6.2.0-302

Conversation

@compot-dev

@compot-dev compot-dev commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #302.

  • bundles/camex: 6.0.0 → 6.2.0 (1102755).
  • Settings gets the library's new optional Network selector field after Network name. It is kept, not hidden: empty changes nothing, the form is built from the library's fields, and hiding it would need a Decoder-side exception to the library's list for a field that does nothing when empty.
  • README (en/ru/zh-CN): camex 6.2.0 and the new field. Version 2.29.0 (versionCode 70).

Checked locally in Docker: unit tests, lint (13 warnings, as the baseline), assembleDebug, check-version.sh; e2e on API 21 and 34: UDP 19/19, TCP 20/20 (camex 6.2.0, client decoder, tunnel up again after Network → Save).

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Restore camex tunnel connectivity with 6.2.0 and network selectors

🐞 Bug fix ✨ Enhancement ⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Upgrade camex to 6.2.0 to restore tunnel connectivity.
• Expose the library’s optional Network selector in Settings, including values supplied by connect
 links.
• Document the selector in three languages and release Decoder 2.29.0.
Merge Risk 🟡 Medium

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed dependency is configured through the Camex settings and its resulting VPN path is consumed to reach cameras.
  • The settings, tunnel establishment, routing, and camera viewing are implementation hops of one bounded integration and not independent capabilities.
  • No separate affected functional scope is established by the available source.
Sources

CHANGELOG.md[15-20]

## 2.29.0 — 2026-11-23

- camex 6.2.0 in the tunnel (#302). Settings has a new optional **Network selector** field
  after Network name, needed only when the server's network sets a selector (the server then
  answers only for that network). Empty, nothing changes. Save accepts it only with a network
  name and without a psk.
Behavioral complexity 🟡 Medium 🧩 Compatibility cases

  • Before: the Decoder used the prior camex tunnel release and its existing field/protocol contract.
  • After: the dependency introduces a new optional Network selector and corresponding server/network-selection behavior while retaining the existing dynamic field, persistence, validation, VPN startup, and camera-consumer integration.
  • New correctness condition: empty selector configurations must preserve prior behavior, while configurations for servers that require a selector must select the intended network and remain compatible with existing server/client states.
  • These are mixed-version and configuration-compatibility cases, not merely routine use of the existing field infrastructure.
  • The exact implementation and whether it adds further ordering or native-state conditions could not be checked because the submodule source is unavailable.
Sources

CHANGELOG.md[15-20]

## 2.29.0 — 2026-11-23

- camex 6.2.0 in the tunnel (#302). Settings has a new optional **Network selector** field
  after Network name, needed only when the server's network sets a selector (the server then
  answers only for that network). Empty, nothing changes. Save accepts it only with a network
  name and without a psk.
Potential damage 🟡 Medium 🩹 Temporary loss

  • A tunnel negotiation, configuration, or native-library regression can prevent cameras reachable only through camex from being viewed.
  • This is a capability loss rather than an integrity or confidentiality failure on the available evidence: no changed persistent camera data or external transaction is shown.
  • Reverting the application restores the prior library; alternatively, disabling Join or correcting the selector/server configuration can restore operation.
  • The new selector may require coordinated server configuration, so recovery can require a compatible server/network definition and a first successful re-save/adoption of the setting.
  • Recoverable after application rollback or configuration correction, provided the camex server remains available and the user can supply a compatible network name/selector.
  • No automatic repair worker or persistent-state migration was identified.
  • A server-side network selection mismatch may require manual configuration before reconnecting.
Sources

CHANGELOG.md[15-20]

## 2.29.0 — 2026-11-23

- camex 6.2.0 in the tunnel (#302). Settings has a new optional **Network selector** field
  after Network name, needed only when the server's network sets a selector (the server then
  answers only for that network). Empty, nothing changes. Save accepts it only with a network
  name and without a psk.
Assessed commit de0c43b
Diagram

graph TD
  Link["Connect link"] --> Settings["Network Settings"] --> Saved[("Saved fields")] --> Tunnel["Camex tunnel"] --> Server["Camex server"]
Loading
High-Level Assessment

Use the library-owned field definitions, as this PR does: the existing Settings form already renders and persists them, so a separate app-specific selector implementation would duplicate the library contract. Review the submodule’s behavior and the reported UDP/TCP device results because the library changes themselves are not expanded in this diff.

Files changed (6) +13 / -6

Documentation (4) +10 / -3
CHANGELOG.mdRecord the 2.29.0 tunnel fix +7/-0

Record the 2.29.0 tunnel fix

• Adds release notes for camex 6.2.0 and the optional Network selector. Documents when the selector applies and its network-name and PSK constraints.

CHANGELOG.md

README.mdDocument the selector in English +1/-1

Document the selector in English

• Updates the documented camex version to 6.2.0 and describes the optional Network selector alongside the existing tunnel settings.

README.md

README.ru.mdDocument the selector in Russian +1/-1

Document the selector in Russian

• Updates the documented camex version to 6.2.0 and adds the optional Network selector to the Russian tunnel description.

README.ru.md

README.zh-CN.mdDocument the selector in Simplified Chinese +1/-1

Document the selector in Simplified Chinese

• Updates the documented camex version to 6.2.0 and adds the optional Network selector to the Simplified Chinese tunnel description.

README.zh-CN.md

Other (2) +3 / -3
build.gradleSet Decoder release version to 2.29.0 +2/-2

Set Decoder release version to 2.29.0

• Increments versionCode from 69 to 70 and versionName from 2.28.1 to 2.29.0.

android/app/build.gradle

camexAdvance the camex submodule to 6.2.0 +1/-1

Advance the camex submodule to 6.2.0

• Moves the tunnel dependency from commit 3577182 to 1102755, identified in the PR as camex 6.2.0. This supplies the updated tunnel and its Network selector field to the existing library-driven Settings form.

bundles/camex

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (2) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Selector field is missing from the form 📎 Requirement gap ≡ Correctness
Description
The CHANGELOG and README describe a Network selector field after Network name that is filled from a
connect link’s e= parameter, but Decoder has no selector form field, CamexTunnel.SELECTOR
wiring, or e= parsing. When text is shared to Decoder, loadSettings() saves it as a camera URL
while NetworkPanel reads tunnel settings from saved preferences, so the link cannot populate a
selector and users cannot join a network that requires one through the advertised flow.
Code

CHANGELOG.md[R15-18]

+## 2.29.0 — 2026-11-23
+
+- camex 6.2.0 in the tunnel (#302). Settings has a new optional **Network selector** field
+  after Network name, needed only when the server's network sets a selector (the server then
Evidence
The added CHANGELOG claim says a connect link fills the selector from e=, and the README describes
the field, but the diff adds documentation rather than the corresponding Decoder implementation.
Decoder’s text-sharing entry point saves shared text as a camera URL, while NetworkPanel loads
tunnel configuration from preferences populated by the settings form; neither path transfers e=
into a selector, and the Decoder sources contain no selector form code or SELECTOR reference.

Support the optional Network selector field
CHANGELOG.md[15-18]
CHANGELOG.md[17-20]
android/app/src/main/AndroidManifest.xml[60-70]
android/app/src/main/java/com/openipc/decoder/Decoder.java[724-746]
android/app/src/main/java/com/openipc/decoder/NetworkPanel.java[64-89]
android/app/src/main/java/com/openipc/decoder/NetworkPanel.java[445-456]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The CHANGELOG and README describe a Network selector field and `e=` connect-link handling that Decoder does not implement. The settings form has no selector field, and shared text does not populate tunnel settings.
## Fix Focus Areas
- CHANGELOG.md[15-20]
- README.md[92]
- android/app/src/main/java/com/openipc/decoder/Decoder.java[724-746]
- android/app/src/main/java/com/openipc/decoder/NetworkPanel.java[64-89]
## Recommended Fix
Add an optional selector field after Network name in the tunnel Settings form, using the camex library’s field list. Keep it empty by default, pass its value through `CamexTunnel.SELECTOR`, and add an intentional connect-link ingestion path that parses `e=`, saves it to the selector preference, and uses it for the tunnel connection. Confirm the field and link behavior match the documentation; if link ingestion is not implemented, remove or qualify the `e=` claim.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


2. Selector is not validated before saving 📎 Requirement gap ≡ Correctness
Description
No code in the diff checks the selector against the network name or the PSK, although the CHANGELOG
states it is accepted only with a network name and without a psk. A selector saved with an empty
network name or alongside a psk reaches the server unchecked and fails only at connect time.
Code

CHANGELOG.md[R19-20]

+  answers only for that network); a connect link fills it from `e=`. Empty, nothing changes.
+  It is accepted only with a network name and without a psk.
Evidence
Rule 3 requires a selector to be accepted only with a network name and without a PSK. The CHANGELOG
line says it is accepted only with a network name and without a psk, but the diff has no validation
logic, and the repository has no selector code for such a check to sit in.

Enforce Network selector input constraints
CHANGELOG.md[19-20]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
Issue description
The selector constraint (accepted only with a network name and without a psk) is documented in CHANGELOG.md but not enforced anywhere in the diff.
Fix Focus Areas
- CHANGELOG.md[19-20]
Recommended Fix
When the tunnel settings are saved or the connect link is applied, reject or clear a non-empty selector if the network name is empty or a psk is set, and show the user why. Add a unit test for each case: selector with no network name, selector with psk, and selector with network name and no psk.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@compot-dev

Copy link
Copy Markdown
Collaborator Author

Qodo:

  1. Selector field missing from the form: the field is there. NetworkPanel builds the Settings form from the camex library's CamexTunnel.fields() (in the bundles/camex submodule, not in this diff), and 6.2.0 lists Network selector after Network name. The part that was right: Decoder takes no camex connect link, so nothing fills the field from e=. The CHANGELOG and the PR text said it did; fixed in the last commit, the selector is typed in.
  2. Selector not validated before saving: it is. Save runs CamexTunnel.check(n) (NetworkPanel.java, the Save handler) and keeps the dialog open with the reason. The library's check refuses a selector without a network name or with a psk.

@compot-dev
compot-dev merged commit 1c7cdc9 into v2 Nov 23, 2026
7 checks passed
@compot-dev
compot-dev deleted the fix/camex-6.2.0-302 branch November 23, 2026 13:07
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.

camex 6.2.0 in the tunnel

1 participant