Skip to content

Uncomment specifyuser_spprincipal usage#7868

Open
alesan99 wants to merge 2 commits intov7.12.0-prereleasefrom
issue-7861-1
Open

Uncomment specifyuser_spprincipal usage#7868
alesan99 wants to merge 2 commits intov7.12.0-prereleasefrom
issue-7861-1

Conversation

@alesan99
Copy link
Copy Markdown
Contributor

@alesan99 alesan99 commented Mar 30, 2026

Fixes #7861

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests

Testing instructions

  • Use a db created with the guided setup in Specify 7
  • Make sure creating a user doesn't cause a crash
  • Open up an existing database made in Specify 6 in Specify 7
  • Make sure creating a user doesn't cause a crash in Specify 7
  • Make sure creating a user in the existing DB properly creates Specify 6 permissions. You can verify this by logging into the user in Specify 6 (if you make them a manager in 7, it should work when you log into them in 6). If it works when creating it through v7.11.2, then it should work when creating it with this PR.

@alesan99 alesan99 added this to the 7.12.0 milestone Mar 30, 2026
@github-project-automation github-project-automation bot moved this to 📋Back Log in General Tester Board Mar 30, 2026
@alesan99 alesan99 changed the base branch from main to v7.12.0-prerelease March 30, 2026 19:01
@alesan99
Copy link
Copy Markdown
Contributor Author

From @grantfitzsimmons

Testing instructions

  • Use a db created with the guided setup in Specify 7

  • Make sure creating a user doesn't cause a crash

  • Open up an existing database made in Specify 6 in Specify 7

  • Make sure creating a user doesn't cause a crash in Specify 7

Using the same database I made with Specify 7:

  • Make sure creating a user properly creates Specify 6 permissions. You can verify this by logging into the user in Specify 6 (if you make them a manager in 7, it should work when you log into them in 6).

Hmm...

Image
13:54:25 DEBUG brc.util.FileCache:357 - Loading old cache mapping data from longTerm.Cache
13:54:25  WARN brc.util.FileCache:417 - Unable to locate old cache mapping file.  Building cache... 0 / 0
13:54:25 DEBUG brc.util.FileCache:520 - Cache Size: 0 / 0
13:54:25 DEBUG brc.util.FileCache:357 - Loading old cache mapping data from forms.Cache
13:54:25  WARN brc.util.FileCache:417 - Unable to locate old cache mapping file.  Building cache... 0 / 0
13:54:25 DEBUG brc.util.FileCache:520 - Cache Size: 0 / 0
13:54:27 DEBUG ui.db.PropertiesPickListAdapter:292 - Saving PickList
13:54:27 DEBUG ui.db.PropertiesPickListAdapter:296 - [login.databases][KUEntomology_2026_02_27,newdb_2026_03_30,newdb_sp6_2026_02_23,specify]
13:54:27 DEBUG ui.db.PropertiesPickListAdapter:308 - [login.databases_selected][newdb_2026_03_30]
13:54:27 DEBUG ui.db.PropertiesPickListAdapter:292 - Saving PickList
13:54:27 DEBUG ui.db.PropertiesPickListAdapter:296 - [login.servers][localhost,127.0.0.1]
13:54:27 DEBUG ui.db.PropertiesPickListAdapter:308 - [login.servers_selected][127.0.0.1]
13:54:27 DEBUG brc.ui.UIHelper:1647 - try login
13:54:27 DEBUG specify.module.DbLoginCallbackHandler:89 - handle
13:54:29 ERROR ui.db.DatabaseLoginPanel$17:1340 - com.install4j.api.launcher.SplashScreen$ConnectionException: no splash screen available
13:54:35 DEBUG specify.dbsupport.SpecifySchemaUpdateService:211 - appVerNumArg: [6.8.03] dbVersion from XML[2.10] appVersion[6.8.03] schemaVersion[2.10]  spverId[1]  recVerNum[1] 
13:54:35  INFO brc.dbsupport.HibernateUtil:198 - Using database [jdbc:mysql://127.0.0.1:3306/newdb_2026_03_30?characterEncoding=UTF-8&autoReconnect=true]
13:54:38 DEBUG brc.ui.UIHelper$1DBListener:1854 - UIHelper.doLogin[DBListener]
13:54:38 DEBUG brc.specify.Specify:2940 - loggedIn - database[newdb_2026_03_30] username[specify6]
13:54:38 DEBUG brc.specify.Specify:2474 - restartApp
13:54:38 DEBUG core.db.DBTableIdMgr:141 - Reading in datamodel file: /Applications/Specify/config/specify_datamodel.xml to create and populate DBTableMgr
13:54:38 DEBUG core.db.DBTableIdMgr:311 - Done Reading in datamodel file: /Applications/Specify/config/specify_datamodel.xml
13:54:38  WARN hibernate.util.JDBCExceptionReporter:77 - SQL Error: 1054, SQLState: 42S22
13:54:38 ERROR hibernate.util.JDBCExceptionReporter:78 - Unknown column 'division0_.divisionId' in 'SELECT'
org.hibernate.exception.SQLGrammarException: could not load an entity: [edu.ku.brc.specify.datamodel.Division#1]
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)

newdb_2026_03_30.sql.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

Uncomment specifyuser_spprincipal usage

1 participant