Http Fetcher: source url with JSON code marked as invalid

Created on 6 December 2018, over 6 years ago
Updated 27 May 2023, almost 2 years ago

Hello,

i get an "invalid url" error for this url:

http://newapi.omnicasa.com/1.8/OmnicasaService.svc/GetPropertyListXml?json={'Status':'1','Goal':0,'SortFields':'Price Asc,ID Desc','Limit1':0,'Limit2':12,'CustomerName':'demo','CustomerPassword':'demo2013'}

Is it possible to permit this format ?
Just for test, how can i disable the url validation ?

πŸ’¬ Support request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium jbfelix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Fool2

    We do have an element that has its own validation, feeds_uri but is the validator there enough? I can easily feed it garbage. Maybe we can set #allowed_schemes in the $form['source']? That way it can be limited not to access any local resources or other funky things? I am not an expert in what should be limited.

    That being said, OPs url should be encoded. I do not think the url form element as it stands is converting those characters to urlencoded, it is just validating it. Your url should look something like this in the text field:

    http://newapi.omnicasa.com/1.8/OmnicasaService.svc/GetPropertyListXml?js...

Production build 0.71.5 2024