Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error feedback, cannot delete Bad Media #8598

Open
jebrad opened this issue Mar 7, 2025 · 3 comments
Open

error feedback, cannot delete Bad Media #8598

jebrad opened this issue Mar 7, 2025 · 3 comments
Labels
contact auto-added from contact template

Comments

@jebrad
Copy link

jebrad commented Mar 7, 2025

Whoa. I tried to link to a new piece of media (3D scan of a mandible) that I just uploaded to Morphosource. It went awry, linked to the wrong media, and now I cannot delete it.

How I did this: I went to the Arctos Record https://arctos.database.museum/guid/UWBM:Mamm:39915
then clicked Media, and in there I clicked "Add Media, Option 3 link to existing media"
I linked to the Morphosource-generated ARK (copied link location) and somehow it linked to a different image: a vole mandible from UAF. And when I tried to delete the media (via edit: change relationship to delete and then save edits) I got an error message that included:

ERROR_ID BA6A4E95-2F69-4B19-A6C85FF56307020E
ERROR_TYPE SQL
ERROR_MESSAGE ERROR: A legal document license is required; see #8370 Where: PL/pgSQL function trigger_fct_tr_media_sq() line 17 at RAISE
ERROR_DETAIL  
ERROR_SQL update media set media_uri='https://web.corral.tacc.utexas.edu/UAF/arctos/2009_08_04/UAM13536_UR.jpg', mime_type='image/jpeg', media_type='image', preview_uri='https://web.corral.tacc.utexas.edu/UAF/arctos/2012_01_18/tn_UAM13536_UR.jpg', media_license_id = null, media_terms_id = null where media_id=1

Main help needed: So I cannot even delete this Bad Media now, which is one problem and the one I am asking for help with here. I read through #8370 - lots of legal discussion there, but could not see where anyone decided we would prevent me from deleting a link to media that I just created myself, so this seems like a glitch?

Also I need to figure out why my attempt to use the ARK linked to the wrong image, although this problem might be better for @Jegelewicz to help me figure out because we are in a bigger process of standardizing our Morphosource media procedures (and this seems like a Morpho problem not an Arctos problem).

Correct media on Morphosource, I just uploaded this today:
https://www.morphosource.org/concern/media/000716865
Ark: https://n2t.net/ark:/87602/m4/716865

Here is the Bad Media - the actual media that the ark pointed towards:
https://web.corral.tacc.utexas.edu/UAF/arctos/2009_08_04/UAM13536_UR.jpg

Thanks!

@jebrad jebrad added the contact auto-added from contact template label Mar 7, 2025
@dustymc
Copy link
Contributor

dustymc commented Mar 7, 2025

Gak! I recognize that picture; I took it, and not from Washington! (And I don't think those are bear teeth....)

https://arctos.database.museum/media/1 has been updated in some way that should not have happened. Any sort of clue about what might have happened would be greatly appreciated.

Please do not delete media, it's a shared resource. I can try to patch this back together, but I'm going to leave it for now so hopefully we can learn what went wrong.

@jebrad
Copy link
Author

jebrad commented Mar 7, 2025

https://arctos.database.museum/media/1 has been updated in some way that should not have happened. Any sort of clue about what might have happened would be greatly appreciated.

I think I know what happened, especially if your photo is Arctos Media ID #1.
I right-clicked to "copy link address" of the ark from here:
https://n2t.net/ark:/87602/m4/716865

And within the Arctos record I clicked Media, then add media Option 3 link to try to link to existing Arctos media, and I tried to paste the ark into Media ID but that didn't work, so I pasted the ark into the large gray rectangle "Picked MediaURI" and selected 1 for Media ID as if it was the identification order.

So I think your photo is Arctos Media # 1 and that's what happened. I was confused about how Option 3 worked with Morphosource media.

Sorry I pointed my bear at your vole photo, and extra sorry for trying to delete it, but I think the only update I could have done was to associate it with my bear 39915. I also see why you have it set so I cannot delete the media. I assumed that changing "relationship" in Arctos would never actually delete anything from Morphosource - but it was never pointing to Morphosource, it was pointing to your vole tooth photo.

Is it possible to add something like "unlink media from this Arctos record" or "no relationship" to this pull-down selection of relationships pasted here? Or could you unlink it for me this one time and we can hope I don't need to ask you again?

I'll get some more help to start linking things to Morphosource, and I'll be more careful about not deleting anything.
PS great photo by the way.

Image

@dustymc
Copy link
Contributor

dustymc commented Mar 7, 2025

omething like "unlink media from this Arctos record" or "no relationship" to this pull-down selection

Agree.

Someone's also unlinked it from the UAM record, but I think not recently. Should be upgraded from the ambiguous and confusing media_id (1) to a clear and unambiguous mediaID (https://arctos.database.museum/media/1).

From your record, I....

Image Image Image Image

(another issue for that picker...)

and - once the cache clears - all should be right with the world.

I went back to your record, clicked media, and....

Image

(another issue for making license look required - I need to push buttons more often!)

click and (after the cache refreshes) that should be happy too.

great photo by the way

Heh - that was a pretty fun little project, inadvertently exploring the limitations of early digital cameras!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contact auto-added from contact template
Projects
None yet
Development

No branches or pull requests

2 participants