The default coll parameter to assets is the database name#6176
The default coll parameter to assets is the database name#6176acwhite211 merged 12 commits intoproductionfrom
Conversation
Triggered by 8dd149a on branch refs/heads/issue-6160
pashiav
left a comment
There was a problem hiding this comment.
- See that all the attachments are fetched successfully
When uploading attachments, it gets interrupted and there is this weird timer:
issue-6160:
https://sp7demofish2924-issue-6160.test.specifysystems.org/specify/attachments/import/9
Screen.Recording.2025-02-24.at.1.23.33.PM.mov
production:
https://sp7demofish2924-production.test.specifysystems.org/specify/attachments/import/10
Screen.Recording.2025-02-24.at.1.24.07.PM.mov
Would this be considered to be within scope for this PR?
|
There might be an issue with how this PR works on the test-panel. It seems to work locally. I'll investigate |
Triggered by c776525 on branch refs/heads/issue-6160
|
The asset upload should work on the test panel now 👍 |
pashiav
left a comment
There was a problem hiding this comment.
- See that all the attachments are fetched successfully
Looks good!
Issue from #6176 (review):
When uploading attachments, it gets interrupted and there is this weird timer:
✅ Fixed! Attachment upload working as expected.
combs-a
left a comment
There was a problem hiding this comment.
- See that all the attachments are fetched successfully
Trying this on the test panel with the database from the original issue, looks like coll is being set to sp7demofish in both production and here. Is this just a test panel issue?
I am having some issues recreating the issue itself--the first 2 pictures, I uploaded myself on production and have no issues there or here with fetching. Their filename is the GUID and it matches, but for the others, it seems that the filename doesn't match. Not sure if that's the root cause, but since the pictures also use sp7demofish as coll, I'm not sure.
|
Looks like when running entomologiamnrj_2025_02_10, the test-panel is configuring the asset server collection parameter to the default sp7demofish. This is just due to entomologiamnrj_2025_02_10 not being on the test-assets server. Try testing this PR on sp7demofish. I'll setup a correctly configured test-panel instance for another database. EDIT: Looks like sp7demofish is the only one directory on the test-asset server populated with files, so sp7demofish is the only database that can be used on the test panel to test this PR. |
combs-a
left a comment
There was a problem hiding this comment.
- See that all the attachments are fetched successfully
Testing it on test panel w/ sp7demofish_eu--while the thumbnails were fetched regardless of branch, there was an error on production but not in this branch. Looks like it's working from what I can tell.


Fixes #6160
The default coll parameter to assets is the database name. This is determined when calling the
/context/attachment_settings.jsonAPI endpoint, which call theassets_gwapp view functionget_settings. When setting the defaultcollparameter, it should be the database name in the settings, not a random collection name.Checklist
self-explanatory (or properly documented)
Testing instructions