We have moved to GitHub Issues
Created by Chris McKee 12 Apr 2013, 14:10:49 Updated by Chris McKee 15 Apr 2013, 10:01:06
Places this probably needs fixing
Images included show steps taken and expectations.
Thanks for the detailed report!
Unfortunately I cannot recreate this in a clean Umbraco 6.0.3 install. is there anything else you can think of the might interfere here? Installed packages? Browser differences?
I'll close this for now until we can get a repro of the issue.
I've attached a sample solution + CE DB zipped up in 7-zip.
Basically the issue of adding the new-lines lies within Umbraco Components; the actual issue that occurs though is being caused by the lack of field sanitation in umbraco.
I can put whitespace and new-lines in, and only those as in no extra characters, in a regex field and umbraco fails to trim/clear them even though the whitespace wouldn't be valid within a regex statement.
This then leads to an unmeetable format requirement that is unlikely to have been created on purpose with no obvious means of remedy to a normal-user or (lets be honest) your core dev base.
Its a small thing to fix and as the attached shows is reproducible within an umbraco project with no other plugins.
I see, your initial report led me to believe that somehow whitespace was inserted automatically. I agree that the validation field should be trimmed. Fixed in changeset ff0ea16d7a2d
Ta G. The field is growing but thats possibly coming from ucomponents (only plugin installed - via nuget). The fix solves the resulting issue rather than the cause for me but its a sensible precaution eitherway.
Backwards Compatible: True
Affected versions: 6.0.3
Due in version: 6.0.4, 4.11.7