Steps to Reproduce: 1. /profile=full/subsystem=infinispan/cache-container=hibernate/replicated-cache=test:add(mode=SYNC) 2. /profile=full/subsystem=infinispan/cache-container=hibernate/replicated-cache=test/eviction=EVICTION:add() 3. /profile=full/subsystem=infinispan/cache-container=hibernate/replicated-cache=test/eviction=EVICTION:read-resource { "outcome" => "success", "result" => { "max-entries" => -1, "strategy" => "NONE" } } 4. Using Web Console go to Configuration > Infinispan > Replicated Caches > select test > Eviction Actual results: Max Entries: 0 Expected results: Max Entries: -1 or at least empty
This is because the max-entries field is marked as a NUMBER_BOX not ALLOW_NEGATIVE_NUMBER_BOX. See [1]. I suspect that this behaviour will also be present for LocalCache, DistributedCache and InvalidationCache i.e. all Eviction submenus. This issue is very much related to [2]. [1]https://github.com/hal/core/blob/2.5.x/gui/src/main/java/org/jboss/as/console/client/shared/subsys/infinispan/model/ReplicatedCache.java#L279-L280 [2]https://bugzilla.redhat.com/show_bug.cgi?id=1245173
Ryan Emerson <remerson> updated the status of jira HAL-956 to Open
Ryan Emerson <remerson> updated the status of jira HAL-956 to Coding In Progress
Ryan Emerson <remerson> updated the status of jira HAL-956 to Resolved
Verified on EAP 6.4.7.CP.CR2
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.