PCM_OP_INC_FLDS Should Not Be Able To Update Unwritable Fields (Doc ID 786901.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle Communications Billing and Revenue Management - Version 7.3.1.0.0 to 7.3.1.0.1 [Release 7.3.1]
Information in this document applies to any platform.
This problem can occur on any platform.
Checked for relevance on 04-Aug-2013

Symptoms

PCM_OP_INC_FLDS opcode should fail to update a field that is not writable.

Tried to execute PCM_OP_INC_FLDS against a non-writable field in an object and it worked.
Also tested PCM_OP_WRITE_FLDS against the same field and it failed. Both should have failed as
both are updates to the field.

-- Steps To Reproduce:
1. Pick any /event object in the database, and not-writable field PIN_FLD_EARNED_TYPE.
2. Using that event POID, execute the following via testnap:

r << EOF 1
0 PIN_FLD_POID POID [0] <insert_poid_here>
0 PIN_FLD_EARNED_TYPE INT [0] 1
EOF
rflds 1
s 2
xop PCM_OP_INC_FLDS 0 1
xop PCM_OP_WRITE_FLDS 0 2

The PCM_OP_INC_FLDS succeeds (even with a non-zero input amount) but PCM_OP_WRITE_FLDS fails because the field PIN_FLD_EARNED_TYPE is not-writable in the data dictionary.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms