@@ -19,7 +19,7 @@ def _parse_tapis_uri(tapis_uri: str) -> (str, str):
1919 tapis_uri (str): URI in the format 'tapis://system_id/path'.
2020
2121 Returns:
22- tuple: A tuple containing (system_id, path) where path is URL-decoded .
22+ tuple: A tuple containing (system_id, path).
2323
2424 Raises:
2525 ValueError: If the URI format is invalid or missing required components.
@@ -36,7 +36,7 @@ def _parse_tapis_uri(tapis_uri: str) -> (str, str):
3636 try :
3737 parsed = urllib .parse .urlparse (tapis_uri )
3838 system_id = parsed .netloc
39- path = urllib . parse . unquote ( parsed .path .lstrip ("/" ) ) if parsed .path else ""
39+ path = parsed .path .lstrip ("/" ) if parsed .path else ""
4040 if not system_id :
4141 raise ValueError (f"Invalid Tapis URI: '{ tapis_uri } '. Missing system ID." )
4242 return system_id , path
@@ -190,8 +190,7 @@ def get_ds_path_uri(t: Tapis, path: str, verify_exists: bool = False) -> str:
190190 )
191191 else :
192192 tapis_path = path_remainder
193- encoded_path = urllib .parse .quote (tapis_path )
194- input_uri = f"tapis://{ storage_system_id } /{ encoded_path } "
193+ input_uri = f"tapis://{ storage_system_id } /{ tapis_path } "
195194 print (f"Translated '{ path } ' to '{ input_uri } ' using t.username" )
196195 break # Found match, exit loop
197196
@@ -206,8 +205,7 @@ def get_ds_path_uri(t: Tapis, path: str, verify_exists: bool = False) -> str:
206205 if pattern in path :
207206 path_remainder = path .split (pattern , 1 )[1 ].lstrip ("/" )
208207 tapis_path = path_remainder
209- encoded_path = urllib .parse .quote (tapis_path )
210- input_uri = f"tapis://{ storage_system_id } /{ encoded_path } "
208+ input_uri = f"tapis://{ storage_system_id } /{ tapis_path } "
211209 print (f"Translated '{ path } ' to '{ input_uri } '" )
212210 break # Found match, exit loop
213211
@@ -295,8 +293,7 @@ def get_ds_path_uri(t: Tapis, path: str, verify_exists: bool = False) -> str:
295293 f"Could not resolve project ID '{ project_id_part } ' to a Tapis system ID."
296294 )
297295
298- encoded_path_within_project = urllib .parse .quote (path_within_project )
299- input_uri = f"tapis://{ found_system_id } /{ encoded_path_within_project } "
296+ input_uri = f"tapis://{ found_system_id } /{ path_within_project } "
300297 print (f"Translated '{ path } ' to '{ input_uri } ' using Tapis v3 lookup" )
301298 break # Found match, exit loop
302299
0 commit comments