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.


John



________________________________
From: Bertrand Delacretaz <[email protected]>
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 <[email protected]> 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

Reply via email to