snare icon indicating copy to clipboard operation
snare copied to clipboard

Clone bug with url's ending in '/'? (default WordPress set-up)

Open Gerard42 opened this issue 5 years ago • 2 comments

When cloning a local default WordPress set-up I got 404 errors with Snare.There seems to be a bug in the way Snare handles url's ending with a '/', the following regex in meta.json fixes the issue for my cloned websites: %s//":/":/g

Not sure if I'm doing something wrong, but at least it is working for me after this manual fix.

Gerard42 avatar Jun 05 '19 14:06 Gerard42

Could you paste the actual URLs and some meta.json portion containing URLs?

rnehra01 avatar Jun 08 '19 08:06 rnehra01

Following a link on the main index.html page ending in a / results in a 404 error, i.e.: http://127.0.0.1:8080/index.php/author/tanner/

URLs not ending with a / do work, i.e: http://127.0.0.1:8080/wp-login.php

Here is the complete meta.json (resulting from a clone of a local default WordPress installation):

{"/index.html": {"hash": "d1546d731a9f30cc80127d57142a482b", "content_type": "text/html"}, "/status_404": {"hash": "bacfa45149ffbe8dbff34609bf56d748", "content_type": "text/html"}, "/index.php/feed/": {"hash": "5c932ab5528cf71e63646fabfd013b78", "content_type": "application/rss+xml"}, "/index.php/comments/feed/": {"hash": "d9a8027dd707e138c3bc534b3d194502", "content_type": "application/rss+xml"}, "/wp-includes/css/dist/block-library/style.min.css?ver=5.1.1": {"hash": "3dfe573ad90e423b3e4d668c8da21edb", "content_type": "text/css"}, "/wp-includes/css/dist/block-library/theme.min.css?ver=5.1.1": {"hash": "a366b037853f732b2c0ad132b71bd6c2", "content_type": "text/css"}, "/wp-content/themes/twentynineteen/style.css?ver=1.3": {"hash": "a7b362b174955e9f96ab3050200bc832", "content_type": "text/css"}, "/wp-content/themes/twentynineteen/print.css?ver=1.3": {"hash": "71c0443556699b124f71b6fcfb44e3f2", "content_type": "text/css"}, "/index.php/wp-json/": {"hash": "a2150fd60b477ab5b547fd6d3b4e056e", "content_type": "application/json"}, "/xmlrpc.php?rsd": {"hash": "1a5d9562b153e7256f540d0a425d2af6", "content_type": "text/xml"}, "/wp-includes/wlwmanifest.xml": {"hash": "571b76abd83c836ef65cbfb03222847e", "content_type": "application/xml"}, "/index.php/2019/04/24/hello-world/": {"hash": "87a393ce4ca1329480ad5f614b5f545c", "content_type": "text/html"}, "/index.php/author/tanner/": {"hash": "6358304a5979cfa76032df55a0071a83", "content_type": "text/html"}, "/index.php/category/uncategorized/": {"hash": "4482be3cbfc2028564b67faf355eb56b", "content_type": "text/html"}, "/index.php/2019/04/": {"hash": "6a88d1d1aebf9534642a61cf8595a014", "content_type": "text/html"}, "/wp-login.php": {"hash": "f2b612210e4d513cafa271ce158f3577", "content_type": "text/html"}, "/wp-includes/js/wp-embed.min.js?ver=5.1.1": {"hash": "fd9a7d5fdb42bea282f8ce2445774878", "content_type": "application/javascript"}, "/index.php/2019/04/24/hello-world/feed/": {"hash": "0a59bac965e222d9d6f6ede069f0be29", "content_type": "application/rss+xml"}, "/?p=1": {"hash": "5e13bbb73127b9fc424e3728c6500f28", "content_type": "text/html"}, "/index.php/wp-json/oembed/1.0/embed?url=http://127.0.0.1/index.php/2019/04/24/hello-world/": {"hash": "1222f484d8299fa34253ca8215bcb6e0", "content_type": "application/json"}, "/index.php/wp-json/oembed/1.0/embed?url=http://127.0.0.1/index.php/2019/04/24/hello-world/&format=xml": {"hash": "15e07768d221a53784395054df53b8c2", "content_type": "text/xml"}, "/xmlrpc.php": {"hash": "8b81c9796b157595b96f9829f92b37e2", "content_type": "text/plain"}, "/avatar/d7a973c7dab26985da5f961be7b74480?s=60&d=mm&r=g": {"hash": "80c17ab5064a57709338f370335b3a51", "content_type": "image/png"}, "/wp-includes/js/comment-reply.min.js?ver=5.1.1": {"hash": "023e4c045b6fdbc2a1478500c8d4402a", "content_type": "application/javascript"}, "/wp-comments-post.php": {"hash": "cf24bf65153587c9e52358f493e1b9a3", "content_type": "text/plain"}, "/index.php/author/tanner/feed/": {"hash": "e006440ebab8bb96e044e167f663b53a", "content_type": "application/rss+xml"}, "/wp-includes/css/dashicons.min.css?ver=5.1.1": {"hash": "8ccc148eb8f288a740099b8f24b9d4bb", "content_type": "text/css"}, "/wp-includes/css/buttons.min.css?ver=5.1.1": {"hash": "d805a7f76d8d9cfe97feddc170ca9ae2", "content_type": "text/css"}, "/wp-admin/css/forms.min.css?ver=5.1.1": {"hash": "63b45b323f7ebcafe733fdb2618702c1", "content_type": "text/css"}, "/wp-admin/css/l10n.min.css?ver=5.1.1": {"hash": "b57641770a981ebb897647831d4263bc", "content_type": "text/css"}, "/wp-admin/css/login.min.css?ver=5.1.1": {"hash": "9bca38f12529c43b428772b6bced4a6d", "content_type": "text/css"}, "/wp-login.php?action=lostpassword": {"hash": "8f32686f35642ff454dbfa7667c13226", "content_type": "text/html"}, "/fonts/dashicons.eot": {"hash": "e7cbb68066349dadcd6deb91fa78ca8f", "content_type": "text/html"}, "/fonts/dashicons.ttf": {"hash": "4501687b31f46083d3fea17118bfc00f", "content_type": "text/html"}, "/fonts/dashicons.svg#dashicons": {"hash": "60f169a0a2b1c0a20436b656cb62fa00", "content_type": "text/html"}, "/images/loading.gif": {"hash": "e2d84f55395ea4a0d44fa3fb3c2884d3", "content_type": "text/html"}, "/images/w-logo-blue.png?ver=20131202": {"hash": "baf4da22c473aef8f947e0c251f01320", "content_type": "text/html"}, "/images/wordpress-logo.svg?ver=20131107": {"hash": "94f41253fd47560fc002079d6e491607", "content_type": "text/html"}}

Gerard42 avatar Jun 12 '19 10:06 Gerard42