bigbosst / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

SMS Servlet Gateway Url couldn't accept port number. #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Config Manager
2.Entering the designated url into the SMS Gateway Url fields in configuration 
mode
3.Saving the configuration with the designated gateway url.

What is the expected output? What do you see instead?

The field should accept the url as it is validated.

What version of PWM are you using?

v1.5.4 b1056

What ldap directory and version are you using?

NA

Please paste any error log messages below:

Configuration format error: SMS-SMS Gateway incorrect value format for value: 
'http://serverIP:portnumber/pwm/SMSService { 5203 CONFIG_FORMAT_ERROR (SMS-SMS 
Gateway incorrect value format for value: 
'http://serverIP:portnumber/pwm/SMSService) fields: [SMS-SMS Gateway incorrect 
value format for value: 'http://serverIP:portnumber/pwm/SMSService] }

Due to confidential stuff, the serverIP and portnumber could not be name.

Original issue reported on code.google.com by jasonyeo...@gmail.com on 27 Jul 2011 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by jrivard on 27 Jul 2011 at 7:33

GoogleCodeExporter commented 9 years ago
...issue is for me... Should be solved with r210. Minor update in regex.

Please test. 

Original comment by menno.pi...@gmail.com on 27 Jul 2011 at 7:57

GoogleCodeExporter commented 9 years ago
Please re-open this issue if this is not resolved in Build #1066.

Original comment by jrivard on 2 Aug 2011 at 8:55

GoogleCodeExporter commented 9 years ago
Hi,
I am getting the same error as the thread starter. I am using v1.6.0 b1096.

Original comment by spira...@gmail.com on 31 Oct 2011 at 2:50

GoogleCodeExporter commented 9 years ago
@spiral83: could you provide me the URL, or at least something that resembles 
it.

The current version accepts "https://sms.example.com:8443/service".

Original comment by menno.pi...@gmail.com on 2 Nov 2011 at 8:19

GoogleCodeExporter commented 9 years ago
Hi, I have attached 2 screenshots of the URL.
the first screenshot is the URL that we are using.
The second screenshot is the sample URL:https://sms.example.com:8443/service

Original comment by spira...@gmail.com on 3 Nov 2011 at 6:56

Attachments:

GoogleCodeExporter commented 9 years ago
I've tried your URL in both my local installation and on the PWM demo server. 
Both accept the URL with no problem. I'm wondering if you're really using the 
latest version, because in the latest version, the error message isn't shown on 
top, but as a text balloon next to the input line (see attachement).

Original comment by menno.pi...@gmail.com on 3 Nov 2011 at 8:04

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, I will get the above message when I tried to save the configuration. I will 
get the error when I entered the URL. I have also attached a screenshot of my 
PWM version.

Original comment by spira...@gmail.com on 3 Nov 2011 at 8:37

Attachments:

GoogleCodeExporter commented 9 years ago
This has probably been fixed AFTER the release:

Open PwmConfiguration.properties and change the following line:

REGEX_sms.gatewayURL=^https?:\/\/[a-z0-9_\.-]{3,}(:\d{1,5})?\/.*

into:

REGEX_sms.gatewayURL=^https?://[A-Za-z0-9_\\.-]{3,}(\\:[0-9]{1,5})?(/.*)?

Restart PWM. That should do it.

Closing now. Please, reopen if this doesn't help.

Original comment by menno.pi...@gmail.com on 3 Nov 2011 at 8:46