Hi Robert,
I created a patch and made it available via: https://issues.apache.org/jira/browse/SLING-7553 Cheers... John ________________________________ From: Robert Munteanu <romb...@apache.org> Sent: Tuesday, March 6, 2018 12:22:18 AM To: users@sling.apache.org Subject: Re: Sling POST servlet and empty arrays? Hi John, On Mon, 2018-03-05 at 17:51 +0000, John Logan wrote: > Thanks, Bertrand, for the clarification. I'm glad you mentioned that > this behavior may not be strictly defined. > > > I don't think I ever turned in my contributor paperwork for Apache > and/or Sling but when I can find a little extra time I'll tackle that > and add a test. That would be great! Note that you don't have to sign a CLA for submitting individual patches, although it does not hurt to have one on file. Robert > > > John > > > > ________________________________ > From: Bertrand Delacretaz <bdelacre...@apache.org> > Sent: Monday, March 5, 2018 5:37:22 AM > To: users > Subject: Re: Sling POST servlet and empty arrays? > > Hi, > > On Thu, Mar 1, 2018 at 5:07 AM, John Logan <john.lo...@texture.com> > wrote: > > Hi, I'm trying to create node with an empty String[] property via > > the Sling POST servlet... > > ... > > Is there a more succinct and accepted way?... > > I don't think so, in general the convention is that empty property > values cause the properties to be removed. > > If you rely on that behavior (which I suppose is undocumented and > just > happened) it might be wise to contribute an automated test that > clarifies this behavior and prevents it from going away in the > future. > > -Bertrand