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

Not able to edit/delete post entry #2907

Open
CydNoxzed opened this issue Mar 7, 2021 · 3 comments
Open

Not able to edit/delete post entry #2907

CydNoxzed opened this issue Mar 7, 2021 · 3 comments

Comments

@CydNoxzed
Copy link

While trying to do this:

Editing (or deleting) a previously created post (on the post page itself and on the main page) with the edit button below the post item.

I encountered this error:

Not an error, but the entry could not be found and I got redirected to the goneContent()-Page:
"Sorry, this content isn't here anymore."

This error only seems to occur with Entries/Posts (/entry/edit/5dcf46fd-6752-4a29-b668-70747533c298/) and not with the other types like Status (/status/edit/cf62a311-5e82-45a0-9086-b3aa09997e2e).

Versions:
php: 8.0.2
known: 8844e8a (2021-02-10)

Possible Fix:

I modify the regex for the route »\IdnoPlugins\Text\Pages\Edit« and »\IdnoPlugins\Text\Pages\Delete« in the file IdnoPlugins/Text/Main.php by adding the character "-" to be able to match UUIDs »/entry/edit/([A-Za-z0-9-]+)/?«.

After the change the modifying and removing of posts was possible again.

Related Commit in idno/text@59f7d8c

@lindner
Copy link
Collaborator

lindner commented Mar 8, 2021

Thanks, that sounds like the right fix.

I think that adding the regex as a global would help centralize this logic.

@mapkyca
Copy link
Member

mapkyca commented Mar 8, 2021

There's already an ID regex in core I think

@CydNoxzed
Copy link
Author

There's already an ID regex in core I think

There is one in Idno\Core\PageHandler if you mean that regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants