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

FOGL-9061: modified asset to have html encoded value #1463

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion python/fledge/common/storage_client/storage_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from fledge.common.service_record import ServiceRecord
from fledge.common.storage_client.exceptions import *
from fledge.common.storage_client.utils import Utils
import urllib.parse
ashish-jabble marked this conversation as resolved.
Show resolved Hide resolved

_LOGGER = logger.setup(__name__)

Expand Down Expand Up @@ -581,7 +582,7 @@ async def purge(self, age=None, sent_id=0, size=None, flag=None, asset=None):
if flag:
put_url += "&flags={}".format(flag.lower())
if asset is not None:
put_url = '/storage/reading/purge?asset={}'.format(asset)
put_url = '/storage/reading/purge?asset={}'.format(urllib.parse.quote(asset))
ashish-jabble marked this conversation as resolved.
Show resolved Hide resolved

url = 'http://' + self._base_url + put_url
async with aiohttp.ClientSession() as session:
Expand Down