Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

I'm not sure what you mean. That issue was fixed *by adding* the try/catch. The real issue that needs to be solved is #1003788: PostgreSQL: PDOException:Invalid text representation when attempting to load an entity with a string or non-scalar ID which is still pending for core.

dave reid’s picture

Status: Postponed (maintainer needs more info) » Fixed
pancho’s picture

Status: Needs work » Needs review
StatusFileSize
new1.73 KB

[edit:]
Oops, I'm sorry - didn't reload the page.
I also should have read that issue.
Please ignore this patch.

Status: Fixed » Needs work

The last submitted patch, pathauto-1988226-1.patch, failed testing.

pancho’s picture

Status: Needs work » Needs review
StatusFileSize
new2.11 KB

So leaving the try... catch in.
But in case an exception has been caught, we don't want to return FALSE but at least continue checking the filesystem. Fixed that.

I also did some more rewording in the doc, because it didn't reflect the fact that we're checking both the menu system and the filesystem.
Also, the wording "Verify if the given path is a valid menu callback" is misleading. It's not like we want to make sure that it already exists, rather we want to make sure it doesn't.

IMHO, the function should also be renamed to something like _pathauto_path_exists() or _pathauto_check_path(), but I did not yet roll that in.

Hopefully, the testbot is able to apply this one correctly - don't know what happened to the other patch.

Title: Remove try ... catch in _pathauto_path_is_callback() » Refactor _pathauto_path_is_callback()
Status: Needs review » Needs work

The last submitted patch, pathauto-1988226-5.patch, failed testing.

pancho’s picture

Category: task » bug
StatusFileSize
new2 KB

Ah okay, now it should be fine. For explanation, see #5.
Escaping the filesystem check makes this a bug.

  • Dave Reid committed 655e451 on 8.x-1.x
    Issue #1988226: Fixed @todo link in _pathauto_path_is_callback to...
  • Dave Reid committed 6644c8c on 8.x-1.x
    Revert "Issue #1988226: Fixed @todo link in _pathauto_path_is_callback...
  • Dave Reid committed d758135 on 8.x-1.x
    Issue #1988226: Fixed @todo link in _pathauto_path_is_callback to...

  • Dave Reid committed 655e451 on 8.x-1.x
    Issue #1988226: Fixed @todo link in _pathauto_path_is_callback to...
  • Dave Reid committed 6644c8c on 8.x-1.x
    Revert "Issue #1988226: Fixed @todo link in _pathauto_path_is_callback...
  • Dave Reid committed d758135 on 8.x-1.x
    Issue #1988226: Fixed @todo link in _pathauto_path_is_callback to...
mably’s picture

Issue summary: View changes
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

mably’s picture

Status: Fixed » Closed (fixed)