Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ralphlange opened this issue Jun 10, 2015 · 1 comment
Open
Assignees

Comments

@ralphlange
Copy link
Contributor

From Sinisa Veseli <sveseli_AT_aps.anl.gov>:

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

@ralphlange ralphlange self-assigned this Jun 10, 2015
@ralphlange
Copy link
Contributor Author

From Matej Sekoranja <matej.sekoranja_AT_cosylab.com>:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant