Skip to content

Uncomment specifyuser_spprincipal usage#7862

Closed
alesan99 wants to merge 132 commits intov7.12.0-prereleasefrom
issue-7861
Closed

Uncomment specifyuser_spprincipal usage#7862
alesan99 wants to merge 132 commits intov7.12.0-prereleasefrom
issue-7861

Conversation

@alesan99
Copy link
Copy Markdown
Contributor

@alesan99 alesan99 commented Mar 27, 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 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).

@alesan99
Copy link
Copy Markdown
Contributor Author

@specify/ux-testing Updated testing instructions since opening a 7 db in 6 is not possible

Copy link
Copy Markdown
Member

@grantfitzsimmons grantfitzsimmons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@github-project-automation github-project-automation bot moved this from 📋Back Log to Dev Attention Needed in General Tester Board Mar 30, 2026
@alesan99 alesan99 changed the base branch from main to v7.12.0-prerelease March 30, 2026 18:55
@alesan99 alesan99 closed this Mar 30, 2026
@github-project-automation github-project-automation bot moved this from Dev Attention Needed to ✅Done in General Tester Board Mar 30, 2026
@alesan99 alesan99 removed this from the 7.12.0 milestone Mar 30, 2026
@alesan99 alesan99 deleted the issue-7861 branch March 30, 2026 19:08
@melton-jason
Copy link
Copy Markdown
Contributor

I'll leave it as note here to keep everything connected.
Databases created with the Setup Tool in Specify 7 are completely incompatible with Specify 6.

It may be intentional, but I'll leave it here as a note. Since #6389, Specify 6 is completely incompatible with databases created in Specify 7.
(If we haven't already, we'll need to update the docs marking the breaking of compatibility from 6 and 7).

#6671 (comment)

Those testing instructions should probably be something more along the lines of:

  • Use a DB created with Specify 7's guided setup

  • Make sure creating a Specify User does not cause a crash

  • Use a DB created with the Specify 6 Wizard

  • Create a user in Specify 7

  • Login as the created user in Specify 6 and ensure their Specify 6 permissions were set

... Which is already the case in the PR which supersedes this one: #7868

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

Labels

None yet

Projects

Status: ✅Done

Development

Successfully merging this pull request may close these issues.

Uncomment specifyuser_spprincipal usage

8 participants