Skip to content

mapkyca/FixSlugBug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slugbug Fixer

This tool addresses the object anomalies produced by this issue (idno/known#1864)

This bug made it possible for multiple entities to have the same slug (and therefore the same url) IF the creating user could not see the existing post due to ACL controls.

E.g.

  • Alice creates a private post "example"
  • Bob creates a public post "example".

Bob's post is given the same slug as Alice's post since he can't see it during creation. This leads to much hilarity during listing and referencing, since getURL() will always create a link which addresses the newest post.

This tool also checks for a possible interaction between #1864 and an older bug #1741 (idno/known#1741), where under these circumstances it is possible to have two entities with duplicate UUIDs.

There is unfortunately no automated way of fixing this issue, but this tool should at least detect them.

Usage

You also have the option of executing a dry run to check if the output looks ok.

See

About

Fixes datamodel issues produced by idno/known#1864

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages