You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a mass-assignment warning on version 1.0.
log file:
Redirected to https://redmineserver/pgp
WARNING: Can't mass-assign protected attributes for Pgpkey: user_id, fpr, secret
Looking at the pgpkeys database table, only NULLs are inserted for user_id, fpr, and secret.
Reloading the page for a user results in no key apparently loaded even though the flash showed success. Looking at the GPG key chain, shows the user key in there.
Updating models/pgpkey.rb to:
class Pgpkey < ActiveRecord::Base
unloadable
attr_accessible :user_id,:fpr,:secret
....
solves the problem and loads the database appropriately.
I'm getting a mass-assignment warning on version 1.0.
log file:
Looking at the pgpkeys database table, only NULLs are inserted for user_id, fpr, and secret.
Reloading the page for a user results in no key apparently loaded even though the flash showed success. Looking at the GPG key chain, shows the user key in there.
Updating models/pgpkey.rb to:
solves the problem and loads the database appropriately.
The text was updated successfully, but these errors were encountered: