Commit 7c14421c authored by Dave Cridland's avatar Dave Cridland

OF-1141 Fix default configuration of PEP

The PEP Service configures leaf nodes to store -1 items by default; however
this value is not corrected by the usual post-configuration checks to 1, and
this in turn means that when gathering the items to return, the single
item is removed.

This patch corrects the issue by setting the maxPublishedItems in the default
configuration to 1 instead.
parent a6024d80
......@@ -155,7 +155,7 @@ public class PEPService implements PubSubService, Cacheable {
leafDefaultConfiguration.setNotifyDelete(true);
leafDefaultConfiguration.setNotifyRetract(true);
leafDefaultConfiguration.setPersistPublishedItems(false);
leafDefaultConfiguration.setMaxPublishedItems(-1);
leafDefaultConfiguration.setMaxPublishedItems(1);
leafDefaultConfiguration.setPresenceBasedDelivery(false);
leafDefaultConfiguration.setSendItemSubscribe(true);
leafDefaultConfiguration.setSubscriptionEnabled(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment