Open nickhilliard opened 2 years ago
Issue is with $r->validate()
here.
validate()
returns to the referrer but in the add-by-snmp stream, the referred is the initial page where the user enters hostname and community rather than the actual form that is being edited. Will need a little bit of work to resolve.
A first "fix" is to make it obvious that these fields must be populated. The next level fix would be to give a meaningful error message, but that might not be worth the effort.
Commented 'cabinetid' => 'required|integer|exists:cabinet,id', line 731 from validation got out of 405 error .
Commented 'cabinetid' => 'required|integer|exists:cabinet,id', line 731 from validation got out of 405 error .
Just populate the fields to work around it. Commented out that line may lead to database inconsistency.
ISSUE TYPE
Bug Report
VERSION
SUMMARY
/switch/store-by-snmp
method fails with 405 if eithercabinetid
orinfrastructure
params are left undefined.STEPS TO REPRODUCE
Create
EXPECTED RESULTS
Should work
ACTUAL RESULTS