Xibo 1.6.0rc1 Region Webpage not accepting addresses without www -- doesn't work with intranet addresses

Asked by Jahn Swob

I just set up a Xibo 1.6.0rc1 server to test out some of the improvements over the previous versions mainly because I'm having an issue with the video randomly pausing and not restarting without closing and re-opening Xibo -- but that's a different issue, still would accept commentary on that issue though.

The main issue is that when I create a region in a new layout and try to add a webpage to it, if I use an address, in my case an intranet address without www. in front, I get a red highlight around the Link field with the error: "Please enter a valid URL."

I've created a layout using the same path in Xibo 1.4.x and have had no issue. Is there an easy fix to this?

Thanks,
-Jahn

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

Hi Jahn

The link needs to be fully qualified. So http://google.com would be fine.

Alex

Revision history for this message
Jahn Swob (jahn-swob) said :
#2

So the link that I am using is from an internal server so there is not a .com address associated with it, its intranet. My address also includes a specific port number as well, I'm not sure if that's causing a problem.

Its similar to this example:
http://servername:8080/path.aspx

I am using the exact path in my 1.4.x implementation and it works flawelessly

Revision history for this message
joa hagner (cyberjoa) said :
#3

Same response "Please enter a valid URL" if you write:
- file:///c:/index.html
- C:\index.html
- http://localhost/index.html

I tried also backslash, without success. Seems the Xibo parser accepts very restrictive URLs only.

My situation: players are all offline - no access to internet allowed (restricted area), but I have some animated HTML5 content to show. So I came up with the idea to run an http server on the player and feed him with the HTML5 files. I installed Apache and copied the HTML5 files to htdocs. The internet browser on the player can now show the HTML5 content by using the URL "http://localhost/index.html". Works fine within the browser, but still Xibo doesn't accept the URL.

Xibo only accepts URLs of the form "http://servername.x". As soon as you put in the last letter of the URL it changes text color from red to green. So "http://servername" does not work, but "http://servername.com" does.

Workaround: put an alias to /etc/hosts. I added a line "127.0.0.1 localhost.com" to /etc/hosts. Now Xibo accepts the URL "http://localhost.com/index.html". I'm happy with this workaround as it works fine for me - but a developer should look after the URL parser code in Xibo.

If someone could point me to the parser source code, I would change it.

J.

Revision history for this message
Alex Harrington (alexharrington) said :
#4

This is already fixed in the repo and will be in rc2

Can you help with this problem?

Provide an answer of your own, or ask Jahn Swob for more information if necessary.

To post a message you must log in.