PacketFence - BTS - PacketFence
View Issue Details
0001682PacketFenceweb adminpublic2013-08-13 09:192015-02-18 11:23
Sylvain 
lmunro 
normalminoralways
closedfixed 
4.0.5 
 
0001682: Cannot add a source to a portal profile
Version 4.0.5

When trying to add a source to a portal profile, I get an error :
"Error! An error occured while contacting the server. Please try again later."
The whole web admin interface is ok, that's the only place where I get this message.
Tried with default profile and custom profiles.

Screenshot attached.

Best regards,

Sylvain
No tags attached.
png screenshot.png (198,895) 2013-08-13 09:19
https://www.packetfence.org/bugs/file_download.php?file_id=184&type=bug
png

png screenshot-add-a-source.png (52,103) 2013-08-19 06:27
https://www.packetfence.org/bugs/file_download.php?file_id=186&type=bug
png
Issue History
2013-08-13 09:19SylvainNew Issue
2013-08-13 09:19SylvainFile Added: screenshot.png
2013-08-13 09:51SylvainNote Added: 0003397
2013-08-13 09:52francisNote Added: 0003398
2013-08-13 09:53SylvainNote Added: 0003399
2013-08-13 09:59francisNote Added: 0003400
2013-08-13 10:59SylvainNote Added: 0003401
2013-08-13 11:23francisNote Added: 0003403
2013-08-13 11:41SylvainNote Added: 0003404
2013-08-13 12:30francisNote Added: 0003405
2013-08-16 03:47SylvainNote Added: 0003411
2013-08-19 06:27SylvainFile Added: screenshot-add-a-source.png
2013-08-19 06:29SylvainNote Added: 0003412
2013-08-19 08:32francisNote Added: 0003413
2013-08-19 08:50SylvainNote Added: 0003414
2013-08-19 08:52SylvainNote Added: 0003415
2013-08-19 10:53SylvainNote Added: 0003416
2015-02-18 11:23lmunroNote Added: 0003958
2015-02-18 11:23lmunroStatusnew => closed
2015-02-18 11:23lmunroAssigned To => lmunro
2015-02-18 11:23lmunroResolutionopen => fixed

Notes
(0003397)
Sylvain   
2013-08-13 09:51   
In admin_access_log:

192.168.1.1 - - [13/Aug/2013:15:48:59 +0200] "GET /add?_=1376401777087 HTTP/1.1" 404 14 "https://192.168.1.2:1443/admin/configuration" [^] "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.5) Gecko/20100101 Firefox/10.0.5"

Nothing appears in admin_error_log
(0003398)
francis   
2013-08-13 09:52   
Is the configuration file conf/profiles.conf writable by the pf user?
(0003399)
Sylvain   
2013-08-13 09:53   
yes
(0003400)
francis   
2013-08-13 09:59   
So you add a source to a portal profile, you click "Save", you click "Save Profile" on the confirmation window, and after you get the error?

This is a JavaScript error. Can you look at your browser's JS console for any error?
(0003401)
Sylvain   
2013-08-13 10:59   
The error occurs when clicking the "Add a source" link.
I don't even have the opportunity to save, or see any field about the source ;)

I get :
[16:53:32,208] GET https://192.168.1.2:1443/add?_=1376405612174 [^] [HTTP/1.1 404 Not Found 37ms]

I also get (with any page) :
[16:53:31,800] An empty string was sent to getElementById(). @ https://192.168.1.2:1443/admin/configuration#authentication [^]
It's probably not related (as I get it through the whole admin interface), but it might help.
(0003403)
francis   
2013-08-13 11:23   
The "Add source" button should trigger a dropdown menu to select which kind of source you want to add.

What browser/version do you use? Can you empty your web cache?
(0003404)
Sylvain   
2013-08-13 11:41   
I confirm, it is exactly where I get the error (and of course no dropdown is shown).

I've emptied the cache : doesn't help.

I'm using Firefox ESR 10.0.5
I've just tested with Internet Explorer 8.0.7601.17514, same behaviour except that the error message does not appear. (Perhaps a second bogus : error messages are not displayed under IE ?)
(0003405)
francis   
2013-08-13 12:30   
Are you sure you haven't modified the templates? I just tested it with FF ESR 10.0.7 and everything works great.
(0003411)
Sylvain   
2013-08-16 03:47   
Sure ;)
I will try restarting from scratch and keep you informed.
(0003412)
Sylvain   
2013-08-19 06:29   
I've reinstalled a new ZEN 4.0.2, everything was working fine.

I upgraded it to 4.0.5 and I noticed something interesting :
 - on the first install I had, the profile page was displaying an "Add a source" link, but no dropdown
 - on the new one, the profile page shows that same link, AND a dropdown !
 - when I removed the default source, the dropdown disappeared
 - the link "Add a source" is still buggy (it shows the same error message) so I cannot add a source again

So I see two problems here :
 - the link "Add a source" is buggy (shows an error message, and JavaScript console shows 404, etc.)
 - the source dropdown disappear when we delete sources (and as the link "Add a source" doesn't work we cannot add a source again)
Note that when creating a new profile, there is no sources selected by default, so we meet the same problem

I've just noticed that I've attached the wrong screenshot to my first post, so I've uploaded the right one.
(0003413)
francis   
2013-08-19 08:32   
This really look like a browser cache issue.
(0003414)
Sylvain   
2013-08-19 08:50   
Emptyied Firefox cache again, no effect.
Also tested again with IE.
Maybe I missed something ?

Another idea ? ;)
(0003415)
Sylvain   
2013-08-19 08:52   
By the way the 404 when clicking on the "Add a source" link might not be a cache issue.

Want a test with Chrome ?
(0003416)
Sylvain   
2013-08-19 10:53   
A new install (again).
I made it from scratch (no ZEN appliance, downloaded directly 4.0.5-2 via yum), and it works perfectly fine.

Maybe a ZEN issue ? An upgrade issue ?
(0003958)
lmunro   
2015-02-18 11:23   
fixed in later release.