Topic: [Bug/Fixed] Including a negation when adding tags breaks aliasing and implications

Posted under Site Bug Reports & Feature Requests

Bug overview description.

When a negation ('-') is included before a tag added onto an image, that negation is removed, and the tag is added, but without being aliased to anything

What part(s) of the site page(s) are affected?

Tags.

What is the expected behavior?

Tag should be replaced with whatever it is aliased to, and ought to include any implicated tags, or alternatively, ought to remove the tag negated.

What actual behavior is given instead?

Negation is removed, tag not aliased, implicated tags are not added.

Can you reproduce the bug every time?

Yes.

What steps did you take to replicate this bug?

Go to any image and add any tag which has been aliased to another tag, or which implicates other tags, with a '-' in front of it. ex: -vagina, -pinniped

---

As an example, please take a look at this image and this search:

post #377357

pinniped -mammal

As an example, I used this image to demonstrate the tag issue. As you can see, it is tagged with pinniped, but not with mammal, nor with marine, which ought not to be possible. Likewise, it is tagged with vagina, which likewise ought not to be possible, considering vagina is aliased to pussy.

Honestly I'm kind of surprised no one has noticed this is possible before. Am I the first one to try this?

Updated by KiraNoot

Sounds like it's removing the hyphen after checking for aliases/implications instead of before. That should be easy enough to fix.

Updated by anonymous

BlueDingo said:
Sounds like it's removing the hyphen after checking for aliases/implications instead of before. That should be easy enough to fix.

That's what I figured too, but what do I know?

Worth mentioning that if you edit the tags again, it will fix the issues, since the negation is already removed by that point.

Updated by anonymous

Furrin_Gok said:
Clawdragons wtf you locked the image's tags?

What? Not that I know of. Is it even possible to do that?

Updated by anonymous

Clawdragons said:
What? Not that I know of. Is it even possible to do that?

I suspect it ties into the negated tags. Any attempt to edit does nothing, and doesn't even go onto the history.

Updated by anonymous

Furrin_Gok said:
I suspect it ties into the negated tags. Any attempt to edit does nothing, and doesn't even go onto the history.

NMNY edited the image after me, which might have something to do with it. Then again, I edited the image after him (to add a missing tag), but that might be possible because I've got privileged status? I don't know how that all works. You'd have to ask someone else about that because I can't replicate what you're seeing.

Updated by anonymous

Clawdragons said:
NMNY edited the image after me, which might have something to do with it. Then again, I edited the image after him (to add a missing tag), but that might be possible because I've got privileged status? I don't know how that all works. You'd have to ask someone else about that because I can't replicate what you're seeing.

I didn't even see his edit on the edit list at that point in time. Maybe I hit some tag edit limit and didn't realize it.

Updated by anonymous

Should be fixed as of most recent deploy on 2016-11-26. Tag stripping and squashing now behaves properly.

Updated by anonymous

  • 1