Commit 5c100c50 authored by Muhammad Umair Khan's avatar Muhammad Umair Khan
Browse files

tmp fix acme issue

parent 63a02499
Loading
Loading
Loading
Loading
+21 −19
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
WORKDIR /usr/src/app

RUN git clone https://github.com/ankraft/ACME-oneM2M-CSE.git ACME-oneM2M-CSE
# Patch ACME CSE validation bug where rqi is incorrectly rejected
RUN sed -i 's/raise BAD_REQUEST(f.validation for attribute {attribute} not defined for resource type: {rtype.name}.)/if attribute == "rqi": return self._validateType(BasicType.string, value, True)\n\t\traise BAD_REQUEST(f"validation for attribute {attribute} not defined for resource type: {rtype.name}")/' ACME-oneM2M-CSE/acmecse/services/Validator.py

WORKDIR /usr/src/app/ACME-oneM2M-CSE

+22 −19
Original line number Diff line number Diff line
@@ -24,6 +24,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update \
WORKDIR /usr/src/app

RUN git clone https://github.com/ankraft/ACME-oneM2M-CSE.git ACME-oneM2M-CSE
# Patch ACME CSE validation bug where rqi is incorrectly rejected
RUN sed -i 's/raise BAD_REQUEST(f.validation for attribute {attribute} not defined for resource type: {rtype.name}.)/if attribute == "rqi": return self._validateType(BasicType.string, value, True)\n\t\traise BAD_REQUEST(f"validation for attribute {attribute} not defined for resource type: {rtype.name}")/' ACME-oneM2M-CSE/acmecse/services/Validator.py


WORKDIR /usr/src/app/ACME-oneM2M-CSE