Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with length sanitization #164

Open
david-fleischmann opened this issue Jul 24, 2024 · 1 comment
Open

Problems with length sanitization #164

david-fleischmann opened this issue Jul 24, 2024 · 1 comment

Comments

@david-fleischmann
Copy link

def datev_sanitize(self, value, length=36):

@fkantelberg We have a discrepancy in length correction for field origin / order_id
In python it's set to a max length of 36 but the xsd evaluation is answering with an allowed max length of 30. Is this a known issue?
image

@fkantelberg
Copy link
Member

No it's not known until now and the xsd in version 050 is also confusing. Seems like that the xsd is fixed with 060. Would you do a PR for version 14-16 and just pass , 30 to all datev_sanitize calls in datev_order_id?

Version 050

<xsd:restriction base="xsd:string">
    <xsd:maxLength value="30"/>
    <xsd:pattern value="[a-zA-Z0-9$%&amp;\*\+\-\./]{1,36}"/>
</xsd:restriction>

Version 060

<xsd:restriction base="xsd:string">
    <xsd:maxLength value="30"/>
    <xsd:pattern value="[a-zA-Z0-9$%&amp;\*\+\-\./]{1,30}"/>
</xsd:restriction>

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

No branches or pull requests

2 participants