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
Trying to use the plugin and i'm getting error/warning on the log related to plugin writing settings.
Error is a SQL index violation error for plugin settings insert statement.
It appears that this line is causing the error:
pluginSettingsFactory.createSettingsForKey(PLUGIN_KEY).put(pluginSettingsId, newSha);
PR i'm trying this on has multiple commits, if that makes a difference. I also created and deleted PR from this branch multiple times. First few attempts plugin was disabled.
BitBucket Server version 5.7.0
Error log entry:
o.h.e.jdbc.spi.SqlExceptionHelper Unique index or primary key violation: "UQ_PLUG_SETTING_NS_KEY_INDEX_4 ON PUBLIC.PLUGIN_SETTING(KEY_NAME, NAMESPACE) VALUES ( /* key:690 */ 'com.parallels.bitbucket.plugins.defaultreviewers', '112.275', null, null)"; SQL statement:
insert into plugin_setting (key_name, namespace, key_value, id) values (?, ?, ?, ?) [23505-176]
The text was updated successfully, but these errors were encountered:
pluginSettingsId is composed of the two values: repository id and pull request id, '112.275' in the error message. The pluginSettings put method should override the value. Looks like it's null in your case (see newSha). newSha is the pull request source branch top commit hash retrieved by https://docs.atlassian.com/bitbucket-server/javadoc/5.1.2/api/reference/com/atlassian/bitbucket/repository/Ref.html#getLatestCommit() which is nonnull. No idea what's going on. I cannot reproduce the issue. Could you please provide steps to reproduce it from scratch?
Trying to use the plugin and i'm getting error/warning on the log related to plugin writing settings.
Error is a SQL index violation error for plugin settings insert statement.
It appears that this line is causing the error:
pluginSettingsFactory.createSettingsForKey(PLUGIN_KEY).put(pluginSettingsId, newSha);
PR i'm trying this on has multiple commits, if that makes a difference. I also created and deleted PR from this branch multiple times. First few attempts plugin was disabled.
BitBucket Server version 5.7.0
Error log entry:
o.h.e.jdbc.spi.SqlExceptionHelper Unique index or primary key violation: "UQ_PLUG_SETTING_NS_KEY_INDEX_4 ON PUBLIC.PLUGIN_SETTING(KEY_NAME, NAMESPACE) VALUES ( /* key:690 */ 'com.parallels.bitbucket.plugins.defaultreviewers', '112.275', null, null)"; SQL statement:
insert into plugin_setting (key_name, namespace, key_value, id) values (?, ?, ?, ?) [23505-176]
The text was updated successfully, but these errors were encountered: