Bug 1278778 - [QE] (6.4.z) Web Console shows different Infinispan Eviction Max Entries value for default value
Summary: [QE] (6.4.z) Web Console shows different Infinispan Eviction Max Entries valu...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Web Console
Version: 6.4.5
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: CR1
: EAP 6.4.7
Assignee: Ryan Emerson
QA Contact: Pavel Jelinek
URL:
Whiteboard:
Depends On:
Blocks: 1274291 eap647-payload
TreeView+ depends on / blocked
 
Reported: 2015-11-06 11:50 UTC by Pavel Jelinek
Modified: 2017-01-17 12:02 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-01-17 12:02:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1245173 0 unspecified CLOSED [QE] (6.4.z) Unnecessary validation of numeric fields forces user to manually enter even default values when configuring... 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker HAL-956 0 Major Resolved Web Console shows different Infinispan Eviction Max Entries value for default value 2020-07-07 02:50:29 UTC

Internal Links: 1245173

Description Pavel Jelinek 2015-11-06 11:50:49 UTC
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

Comment 2 Ryan Emerson 2015-11-09 13:20:47 UTC
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

Comment 4 JBoss JIRA Server 2015-11-12 15:28:35 UTC
Ryan Emerson <remerson> updated the status of jira HAL-956 to Open

Comment 5 JBoss JIRA Server 2015-11-12 15:28:55 UTC
Ryan Emerson <remerson> updated the status of jira HAL-956 to Coding In Progress

Comment 7 JBoss JIRA Server 2015-11-16 17:13:08 UTC
Ryan Emerson <remerson> updated the status of jira HAL-956 to Resolved

Comment 8 Michael Cada 2016-03-01 14:25:07 UTC
Verified on EAP 6.4.7.CP.CR2

Comment 9 Petr Penicka 2017-01-17 12:02:17 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.


Note You need to log in before you can comment on or make changes to this bug.