Skip to content

Commit

Permalink
add one more check on ezurlalias_ml
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Apr 9, 2022
1 parent 159abf0 commit 33fbbf5
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/changelogs/changelog-0.26.0-to-0.26.1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
changelog from version 0.26.0 to 0.26.1

. fixed: a warning when the db is set up in a way such tahtw e fail to get column definition length
. fixed: a warning when the db is set up in a way such that we fail to get column definition length
3 changes: 3 additions & 0 deletions doc/changelogs/changelog-0.26.1-to-0.27.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog from version 0.26.1 to 0.27.0

. added one SQL check for url fragments in ezurlalias_ml missing their parent
2 changes: 1 addition & 1 deletion extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<software>
<metadata>
<name>eZ DB Integrity extension</name>
<version>0.26.1</version>
<version>0.27.0</version>
<copyright>Copyright (C) 2014-2022 Gaetano Giunta</copyright>
<license>GNU General Public License v2.0</license>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion ezinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static function info()
{
return array(
'Name' => "<a href=\"https://github.com/gggeek/ezdbintegrity\">eZ DB Integrity extension</a>",
'Version' => "0.21.0",
'Version' => "0.27.0",
'Copyright' => "Copyright (C) 2014-2022 Gaetano Giunta",
'License' => "GNU General Public License v2.0"
);
Expand Down
2 changes: 2 additions & 0 deletions settings/ezdbintegrity.ini
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ eztipafriend_counter[]=node_id::ezcontentobject_tree::node_id
eztrigger[]=workflow_id::ezworkflow::id
ezurl_object_link[]=contentobject_attribute_id,contentobject_attribute_version::ezcontentobject_attribute::id,version
ezurl_object_link[]=url_id::ezurl::id
ezurlalias_ml[]=parent::ezurlalias_ml::id::ezurlalias_ml.parent <> 0
ezuser[]=contentobject_id::ezcontentobject::id
ezuser_accountkey[]=user_id::ezuser::contentobject_id
ezuser_discountrule[]=contentobject_id::ezcontentobject::id
Expand Down Expand Up @@ -295,6 +296,7 @@ visible_but_hidden_nodes[sql]=SELECT node_id, is_hidden, is_invisible FROM ezcon
nodes_with_wrong_path[sql]=SELECT c.node_id, c.path_string, p.path_string as parent_path_string FROM ezcontentobject_tree c, ezcontentobject_tree p WHERE c.parent_node_id = p.node_id AND c.path_string NOT REGEXP CONCAT('^', p.path_string, c.node_id, '/$') AND c.node_id <> 1
nodes_with_wrong_depth[sql]=SELECT c.node_id FROM ezcontentobject_tree c, ezcontentobject_tree p WHERE c.parent_node_id = p.node_id AND c.depth != ( p.depth + 1 ) AND c.node_id != 1

# note: lines with is_original=1 (and is_alias=1) do redirect to the node found via the action, both when id = link and id != link
urlaliases_without_nodes[sql]=SELECT parent, text_md5, action FROM ezurlalias_ml LEFT JOIN ezcontentobject_tree ON substr(action, 8) = node_id WHERE action_type = 'eznode' AND is_original = 1 AND node_id IS NULL
nodes_without_urlaliases[sql]=SELECT node_id FROM ezcontentobject_tree LEFT JOIN ezurlalias_ml ON action = concat('eznode:', node_id) WHERE contentobject_id != 0 AND (is_original = 1 OR is_original IS NULL) AND (is_alias = 0 or is_alias IS NULL) AND ezurlalias_ml.id IS NULL
custom_aliases_without_nodes[sql]=SELECT id, destination_url FROM ezurlalias LEFT JOIN ezcontentobject_tree l ON destination_url = concat('content/view/full/', l.node_id) WHERE destination_url LIKE 'content/view/full/%' AND l.node_id IS NULL
Expand Down

0 comments on commit 33fbbf5

Please sign in to comment.