Skip to content

Commit 337adf9

Browse files
author
Walter Vos
committed
Quote event_name when wait starts, and use empty safe string
1 parent 0407f78 commit 337adf9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

azure/durable_functions/models/DurableOrchestrationClient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def _get_raise_event_url(
638638
self, instance_id: str, event_name: str,
639639
task_hub_name: Optional[str], connection_name: Optional[str]) -> str:
640640
request_url = f'{self._orchestration_bindings.rpc_base_url}' \
641-
f'instances/{instance_id}/raiseEvent/{quote(event_name)}'
641+
f'instances/{instance_id}/raiseEvent/{quote(event_name, safe="")}'
642642

643643
query: List[str] = []
644644
if task_hub_name:

azure/durable_functions/models/DurableOrchestrationContext.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from collections import defaultdict
2+
from urllib.parse import quote
23
from azure.durable_functions.models.actions.SignalEntityAction import SignalEntityAction
34
from azure.durable_functions.models.actions.CallEntityAction import CallEntityAction
45
from azure.durable_functions.models.Task import TaskBase, TimerTask
@@ -535,7 +536,7 @@ def wait_for_external_event(self, name: str) -> TaskBase:
535536
Task to wait for the event
536537
"""
537538
action = WaitForExternalEventAction(name)
538-
task = self._generate_task(action, id_=name)
539+
task = self._generate_task(action, id_=quote(name, safe=""))
539540
return task
540541

541542
def continue_as_new(self, input_: Any):

0 commit comments

Comments
 (0)