#11 pvput does not display error/warning messages for illegal values

4.5
closed
Ralph Lange
pvaSrv (12)
5
2015-06-10
2013-08-19
Sinisa Veseli
No

Tag: 3.0-pre1
OS: linux, 64-bit

pvput does not display error/warning messages for illegal values.

Steps to reproduce:

1) run test IOC using st.cmd from pvaSrv/testApp/iocBoot/testDbPv

2) invoke pvput commands as in the examples below:

bash-4.1$ pvget enum01
enum01
uri:ev4:nt/2012/pwd:NTEnum
enum_t value
int index 1
string[] choices [zero,one,two,three]

bash-4.1$ pvput -r "field(value.index)" enum01 4
Old :
uri:ev4:nt/2012/pwd:NTScalar
int value 1

New :
uri:ev4:nt/2012/pwd:NTScalar
int value 4

bash-4.1$ pvput -r "field(value.index)" enum01 111111111
Old :
uri:ev4:nt/2012/pwd:NTScalar
int value 4

New :
uri:ev4:nt/2012/pwd:NTScalar
int value 27591

Discussion

    • assigned_to: Matej Sekoranja --> Ralph Lange
    • Group: -->
     
  • pvaSrv should reject invalid enum values, not pvput (eput could in practice since it knows NTEnum).
    However, it is still up to the pvaSrv do reject such values.

    Note that EPICS softIOC (V3) behaves the same way, so it might be
    wrong to reject such puts.

     
  • Ralph Lange
    Ralph Lange
    2014-10-13

    • labels: --> pvaSrv
    • Group: --> 4.4
     
  • Ralph Lange
    Ralph Lange
    2015-06-10

    • status: open --> closed
    • Target Milestone: --> 4.5
     
  • Ralph Lange
    Ralph Lange
    2015-06-10

    Moved to GitHub (pvaSrv Issue #7).