PacketFence
Bug Tracking System

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001682PacketFenceweb adminpublic2013-08-13 09:192015-02-18 11:23
ReporterSylvain 
Assigned Tolmunro 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version4.0.5 
Target VersionFixed in Version 
Summary0001682: Cannot add a source to a portal profile
DescriptionVersion 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
TagsNo tags attached.
fixed in git revision
fixed in mtn revision
Attached Filespng file icon screenshot.png [^] (198,895 bytes) 2013-08-13 09:19


png file icon screenshot-add-a-source.png [^] (52,103 bytes) 2013-08-19 06:27

- Relationships

-  Notes
(0003397)
Sylvain (reporter)
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 (administrator)
2013-08-13 09:52

Is the configuration file conf/profiles.conf writable by the pf user?
(0003399)
Sylvain (reporter)
2013-08-13 09:53

yes
(0003400)
francis (administrator)
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 (reporter)
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 (administrator)
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 (reporter)
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 (administrator)
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 (reporter)
2013-08-16 03:47

Sure ;)
I will try restarting from scratch and keep you informed.
(0003412)
Sylvain (reporter)
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 (administrator)
2013-08-19 08:32

This really look like a browser cache issue.
(0003414)
Sylvain (reporter)
2013-08-19 08:50

Emptyied Firefox cache again, no effect.
Also tested again with IE.
Maybe I missed something ?

Another idea ? ;)
(0003415)
Sylvain (reporter)
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 (reporter)
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 (administrator)
2015-02-18 11:23

fixed in later release.

- Issue History
Date Modified Username Field Change
2013-08-13 09:19 Sylvain New Issue
2013-08-13 09:19 Sylvain File Added: screenshot.png
2013-08-13 09:51 Sylvain Note Added: 0003397
2013-08-13 09:52 francis Note Added: 0003398
2013-08-13 09:53 Sylvain Note Added: 0003399
2013-08-13 09:59 francis Note Added: 0003400
2013-08-13 10:59 Sylvain Note Added: 0003401
2013-08-13 11:23 francis Note Added: 0003403
2013-08-13 11:41 Sylvain Note Added: 0003404
2013-08-13 12:30 francis Note Added: 0003405
2013-08-16 03:47 Sylvain Note Added: 0003411
2013-08-19 06:27 Sylvain File Added: screenshot-add-a-source.png
2013-08-19 06:29 Sylvain Note Added: 0003412
2013-08-19 08:32 francis Note Added: 0003413
2013-08-19 08:50 Sylvain Note Added: 0003414
2013-08-19 08:52 Sylvain Note Added: 0003415
2013-08-19 10:53 Sylvain Note Added: 0003416
2015-02-18 11:23 lmunro Note Added: 0003958
2015-02-18 11:23 lmunro Status new => closed
2015-02-18 11:23 lmunro Assigned To => lmunro
2015-02-18 11:23 lmunro Resolution open => fixed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker