Skip to content

analyze task doesn't escape space #22

@nvima

Description

@nvima

Did some testing with an project that has an space in the name.
I'm not sure at the moment whether dtrack or the loadbalancer is throwing me the error, i just renamed the project.
but we should probably escape space in the get requests where the project name is sent in the url.
could be that this problem is not only in the analyze task...

Execution failed for task ':analyzeProject'.                                                                                                                      
> Client request(GET https://localhost/api/v1/project/lookup?name=Foobar Abc Sidecar&version=3.0.222) invalid: 400 Bad Request. Text: "<html>                
  <head>                                                                                                                                                                     
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>                                                                                                   
  <title>Error 400 Illegal character SPACE=&apos; &apos;</title>                                                                                                             
  </head>                                                                                                                                                                    
  <body>                                                                                                                                                                     
  <h2>HTTP ERROR 400 Illegal character SPACE=&apos; &apos;</h2>                                                                                                              
  <table>                                                                                                                                                                    
  <tr><th>URI:</th><td>/badMessage</td></tr>                                                                                                                                 
  <tr><th>STATUS:</th><td>400</td></tr>                                                                                                                                      
  <tr><th>MESSAGE:</th><td>Illegal character SPACE=&apos; &apos;</td></tr>                                                                                                   
  </table>                                                                                                                                                                   
                                                                                                                                                                             
  </body>                                                                                                                                                                    
  </html>                                                                                                                                                                    
  " 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions