diff --git a/backend/btrixcloud/profiles.py b/backend/btrixcloud/profiles.py index 5ddf2d2430..e8a4d33d39 100644 --- a/backend/btrixcloud/profiles.py +++ b/backend/btrixcloud/profiles.py @@ -414,6 +414,7 @@ async def get_profile_storage_path_and_proxy( try: profile = await self.get_profile(profileid, org) storage_path = profile.resource.filename if profile.resource else "" + storage_path = storage_path.lstrip(f"{org.id}/") return storage_path, profile.proxyId or "" # pylint: disable=bare-except except: diff --git a/backend/test/test_run_crawl.py b/backend/test/test_run_crawl.py index 01ded77052..f7807be143 100644 --- a/backend/test/test_run_crawl.py +++ b/backend/test/test_run_crawl.py @@ -64,7 +64,7 @@ def test_create_new_config(admin_auth_headers, default_org_id): assert data["storageQuotaReached"] is False -def test_start_crawl(admin_auth_headers, default_org_id): +def test_start_crawl(admin_auth_headers, default_org_id, profile_id): # Start crawl. crawl_data = { "runNow": True, @@ -77,6 +77,7 @@ def test_start_crawl(admin_auth_headers, default_org_id): # limit now set via 'max_pages_per_crawl' global limit # "limit": 1, }, + "profileid": profile_id, } r = requests.post( f"{API_PREFIX}/orgs/{default_org_id}/crawlconfigs/",