leejungho2 / dvbviewer-controller

Automatically exported from code.google.com/p/dvbviewer-controller
0 stars 0 forks source link

rsAuthScope not set: URL Validator not suitable for non public DNS names #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
thanks for providing this nice app!

I stumbled upon a little problem when trying to connect to the Recording 
Service. I referenced the server by its DNS name. But unfortunately there is 
the org.apache.commons.validator.routines.UrlValidator class used for checking 
syntax for public domain names. This verification fails for the network 
internal DNS name. And it does without any notification to the user.

When I entered the IP address of the server, everything works fine.

-----  ServerRequest.java ln421:
private static AuthScope getRsAuthScope() {
        if (rsAuthScope == null) {
            if (urlValidator.isValid(ServerConsts.REC_SERVICE_URL)) { //--> false for my DNS
-----

What steps will reproduce the problem?
1. Enter any non public domain name, like "http://my-home-computer" for 
"Recording Service URL"

What is the expected output? What do you see instead?
The connection shall be possible anyway. Or at least a error message should be 
shown.

What version of the product are you using? On what operating system?
Android 4.2.2 AVD

Original issue reported on code.google.com by oliver.p...@gmail.com on 27 Aug 2013 at 8:07

GoogleCodeExporter commented 9 years ago
Thanks for Providing such detailed Information!

I will look into this.

Original comment by TheRa...@gmail.com on 27 Aug 2013 at 11:01

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r15.

Original comment by TheRa...@gmail.com on 28 Aug 2013 at 7:23

GoogleCodeExporter commented 9 years ago
Fixed in Branch 1.1

removed the commons-validator validator library and changed it to 
android.webkit.URLUtil.isValidUrl  

Should work now :-)

Original comment by org.dvbv...@gmail.com on 28 Aug 2013 at 7:28

GoogleCodeExporter commented 9 years ago
Is this still not working in Version 1.0.1?

I could use some Feedback, because i have no possiblity to test that.

Original comment by TheRa...@gmail.com on 5 Sep 2013 at 12:19

GoogleCodeExporter commented 9 years ago

Original comment by org.dvbv...@gmail.com on 15 Nov 2013 at 10:24