[ 
https://issues.apache.org/jira/browse/GOBBLIN-1446?focusedWorklogId=599458&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-599458
 ]

ASF GitHub Bot logged work on GOBBLIN-1446:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 19/May/21 21:13
            Start Date: 19/May/21 21:13
    Worklog Time Spent: 10m 
      Work Description: aplex commented on a change in pull request #3285:
URL: https://github.com/apache/gobblin/pull/3285#discussion_r635588580



##########
File path: 
gobblin-restli/gobblin-flow-config-service/gobblin-flow-config-service-client/src/main/java/org/apache/gobblin/service/FlowConfigV2Client.java
##########
@@ -214,14 +216,24 @@ public FlowConfig getFlowConfig(FlowId flowId)
       String propertyFilter) throws RemoteInvocationException {
     LOG.debug("getAllFlowConfigs called");
 
-    FindRequest<FlowConfig> getRequest = 
_flowconfigsV2RequestBuilders.findByFilterFlows()
-        
.flowGroupParam(flowGroup).flowNameParam(flowName).templateUriParam(templateUri).userToProxyParam(userToProxy)
-        
.sourceIdentifierParam(sourceIdentifier).destinationIdentifierParam(destinationIdentifier).scheduleParam(schedule)
-        
.isRunImmediatelyParam(isRunImmediately).owningGroupParam(owningGroup).propertyFilterParam(propertyFilter).build();
+    // the following parameters may contain white space
+    try {
+      String decodedSchedule = URLDecoder.decode(schedule, 
StandardCharsets.UTF_8.toString());

Review comment:
       Interesting. I would expect that rest.li framework will do url decoding 
for us automatically. Can we check that the clients are not double-encoding the 
urls? e.g. instead of encoding space to %20, we could possibly encode it twice 
to %2520, and then after decoding by restli it would still be %20.
   
   Also, if we don't see an issue on our side, I suggest to reach out to 
rest.li folks and ask them if we are supposed to do url decoding manually for 
finders. There could be some configuration setting that turns decoding on and 
off for the whole service, and it's not set to the expected value.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 599458)
    Time Spent: 40m  (was: 0.5h)

> Parse Whitespace in Curli Request from GaaS
> -------------------------------------------
>
>                 Key: GOBBLIN-1446
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1446
>             Project: Apache Gobblin
>          Issue Type: Bug
>          Components: gobblin-restli
>    Affects Versions: 0.15.0
>            Reporter: Urmi Mustafi
>            Assignee: Hung Tran
>            Priority: Major
>             Fix For: 0.15.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> When using the two filters cron-schedule and property-filter during search 
> for flow-configs we do not handle the case when the parameters have white 
> spaces in them. To encode the spaces in the curli url we use %20 and need to 
> update GaaS endpoints to be able to parse them, so I have added code to 
> replace %20 with a white space.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to