stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.09k stars 788 forks source link

[Bug Report] Submit to stashbox problems when multiple endpoints exist #3503

Closed Tweeticoats closed 1 year ago

Tweeticoats commented 1 year ago

Describe the bug When multiple stasbox endpoints are configured updating from one blocks submitting to another. I have the pmv stash and stashdb endpoints configured. I would like to pull performer info from stashdb and submit this to pmv stashdb it gets confused and tries to submit an update to stashdb.

There is a stashdb id on the performer, clicking the "submit to stash-box" and selecting the endpoint. Sometimes this detects that the stashdb endpoint already has a stash id and offers you to update this entry. Sometimes this wrongly detects that the pmvstash endpoint already has a stashdb and offers you to update this entry. I suspect the java script seems to not know what endpoint has an id and sometimes thinks that endpoint does not have an id yet.

To Reproduce

  1. find a performer
  2. Edit > scrape with > stashdb
  3. pull new metadata and save
  4. click submit to stash-box
  5. select the PMV stash from the list, the warning "Already exists in pmvstash.org"

It does not happen always and half the time it correctly detects stashdb.org having the stashid and half the time pmvstash.org has the existing id.

Expected behavior stashdb.org should have the id and offer to update that entry as that has the id but sometimes it thinks pmvstash.org has the id and offers to update that.

Screenshots image

Stash Version: (from Settings -> About): v0.19.1-38-ga081b628

Desktop (please complete the following information):

Flashy78 commented 1 year ago

The fix for this may be related to the fix for #3483

DogmaDragon commented 1 year ago

Couldn't reproduce the warning "Already exists in pmvstash.org" on https://github.com/stashapp/stash/commit/e9fa7d071e3587d393cedca735874214e06ff9d9. But found a similar issue.

Submission failed input: Type PerformerDraftInput not found. Check that the config array key for the type matches the name attribute in the type's class. It is required when 'lazyload_types' is enabled

aghoulcoder commented 1 year ago

For what it's worth, https://pmvstash.org is running and unmodified v0.4.6 stash-box. I haven't looked into the issue beyond this.

Tweeticoats commented 1 year ago

What seems to have happened is the id's in the local stash have been messed up when updating an existing entry.

To Reproduce

  1. Go to the performers tab
  2. Select the tagger view
  3. click show configuration
  4. select pmvstash in the list
  5. find an entry with an existing stashdb entry
  6. click update

The artist stashid has now been changed to pmvstash