Attention is currently required from: osmith, laforge.
dexter has posted comments on this change. ( https://gerrit.osmocom.org/c/pysim/+/34155 )
Change subject: sim-reset-server: fix error printing sw_match_error
......................................................................
Patch Set 2:
(1 comment)
File contrib/sim-rest-server.py:
https://gerrit.osmocom.org/c/pysim/+/34155/comment/5e568e7f_80c4daf4
PS1, Line 104: failure.value
> I think you need a __str__ method on the object in order for str() to work. […]
I think there is presumably a problem in the stuff that gets called by the __str__ method in the ApiError object.
The failure happens when there is a status word returned that is not 9862 or 6982. In practice this rarely happens. I have to cement out the if,elif,else branches before "return str(ApiError("Card Communication Error %s" % failure.value), sw)" in order to be able to trigger the problem.
The backtrace looks like this:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/klein/_resource.py", line 291, in processing_failed
return processing_failed(failure, error_handlers[1:])
File "/usr/local/lib/python3.9/dist-packages/klein/_resource.py", line 291, in processing_failed
return processing_failed(failure, error_handlers[1:])
File "/usr/local/lib/python3.9/dist-packages/klein/_resource.py", line 291, in processing_failed
return processing_failed(failure, error_handlers[1:])
File "/usr/local/lib/python3.9/dist-packages/klein/_resource.py", line 280, in processing_failed
d = maybeDeferred(
--- <exception caught here> ---
File "/usr/local/lib/python3.9/dist-packages/twisted/internet/defer.py", line 206, in maybeDeferred
result = f(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/klein/_app.py", line 241, in execute_error_handler
return handler(self._instance, request, failure)
File "/usr/local/lib/python3.9/dist-packages/klein/_app.py", line 512, in _f
return _call(instance, f, request, failure)
File "/usr/local/lib/python3.9/dist-packages/klein/_app.py", line 124, in _call
result = __klein_f__(*args, **kwargs)
File "/home/owner/git_master/pysim/./sim-rest-server.py", line 104, in sw_match_error
return str(ApiError("Card Communication Error %s" % failure.value), sw)
builtins.TypeError: decoding to str: need a bytes-like object, ApiError found
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/34155
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I5a1d19abeb00c2c9dc26517abc44a5c916f2d658
Gerrit-Change-Number: 34155
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Comment-Date: Wed, 30 Aug 2023 15:09:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Comment-In-Reply-To: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: comment
dexter has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252 )
Change subject: PCUIF_Components: fix confirm member in record BTS_CCCH_Block
......................................................................
PCUIF_Components: fix confirm member in record BTS_CCCH_Block
The record BTS_CCCH_Block has an optional field "confirm". However, this
field is not marked as optional. Also f_BTS_CT_handler should make sure
that this field is populated with "omit" when it is not present.
Related: OS#5927
Change-Id: Ifcbb72c22b93855bed89f4970cf63bd2d6fcd128
---
M pcu/PCUIF_Components.ttcn
1 file changed, 16 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/pcu/PCUIF_Components.ttcn b/pcu/PCUIF_Components.ttcn
index a18c774..01638b1 100644
--- a/pcu/PCUIF_Components.ttcn
+++ b/pcu/PCUIF_Components.ttcn
@@ -143,7 +143,7 @@
OCT4 msg_id optional,
charstring imsi optional,
GsmRrMessage rr_msg,
- boolean confirm
+ boolean confirm optional
};
template BTS_PDTCH_Block tr_PCUIF_DATA_PDTCH(template uint8_t bts_nr,
template PCUIF_data raw,
@@ -568,6 +568,7 @@
pcu_msg_rr.msg_id := omit;
pcu_msg_rr.imsi := omit;
pcu_msg_rr.rr_msg := dec_GsmRrMessage(data);
+ pcu_msg_rr.confirm := omit;
}
TC.send(pcu_msg_rr);
repeat;
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbb72c22b93855bed89f4970cf63bd2d6fcd128
Gerrit-Change-Number: 34252
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: dexter.
fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252 )
Change subject: PCUIF_Components: fix confirm member in record BTS_CCCH_Block
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbb72c22b93855bed89f4970cf63bd2d6fcd128
Gerrit-Change-Number: 34252
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 30 Aug 2023 13:50:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: dexter.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252 )
Change subject: PCUIF_Components: fix confirm member in record BTS_CCCH_Block
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbb72c22b93855bed89f4970cf63bd2d6fcd128
Gerrit-Change-Number: 34252
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 30 Aug 2023 13:44:57 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252 )
Change subject: PCUIF_Components: fix confirm member in record BTS_CCCH_Block
......................................................................
PCUIF_Components: fix confirm member in record BTS_CCCH_Block
The record BTS_CCCH_Block has an optional field "confirm". However, this
field is not marked as optional. Also f_BTS_CT_handler should make sure
that this field is populated with "omit" when it is not present.
Related: OS#5927
Change-Id: Ifcbb72c22b93855bed89f4970cf63bd2d6fcd128
---
M pcu/PCUIF_Components.ttcn
1 file changed, 16 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/52/34252/1
diff --git a/pcu/PCUIF_Components.ttcn b/pcu/PCUIF_Components.ttcn
index a18c774..01638b1 100644
--- a/pcu/PCUIF_Components.ttcn
+++ b/pcu/PCUIF_Components.ttcn
@@ -143,7 +143,7 @@
OCT4 msg_id optional,
charstring imsi optional,
GsmRrMessage rr_msg,
- boolean confirm
+ boolean confirm optional
};
template BTS_PDTCH_Block tr_PCUIF_DATA_PDTCH(template uint8_t bts_nr,
template PCUIF_data raw,
@@ -568,6 +568,7 @@
pcu_msg_rr.msg_id := omit;
pcu_msg_rr.imsi := omit;
pcu_msg_rr.rr_msg := dec_GsmRrMessage(data);
+ pcu_msg_rr.confirm := omit;
}
TC.send(pcu_msg_rr);
repeat;
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34252
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ifcbb72c22b93855bed89f4970cf63bd2d6fcd128
Gerrit-Change-Number: 34252
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange