The link "Administrative login" doesn't display "Administrative signin" screen.

Asked by Monpelaud

Hi,
1- On the "Welcome!" screen, when I click on "Administrative login" linked to "http://authpuppy.localdomain/admin", I only get a "Welcome administrator" message.
To get the "Administrative signin" screen I must use the url "http://authpuppy.localdomain/logindoctrine".

2- When I click on "Mange plugins" linked to "http://authpuppy.localdomain/plugin/manage" I get a screen with no CSS applied.
I can't enable or disable plugin because no save button is displayed.

Is it bugs or issues on my server configuration ?

Best regards

Question information

Language:
English Edit question
Status:
Solved
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Solved by:
Monpelaud
Solved:
Last query:
Last reply:
Revision history for this message
gbastien (gbastien02) said :
#1

1- I don't know if it's a bug or a configuration thing, it works fine for me, but on one of our server, what you describe is reproducible. Actually, for some reason, it is as if all actions were not secured at all! So, bug or not, it is a security issue and it needs to be solved. or documented.

2- This one I do not know about... Do you have firebug installed, can you see if it tries to load a css that is not found. Could you post the source of the page? And also, which version of authpuppy are you using? bzr, alpha core or alpha full?

Thanks,
Geneviève

Revision history for this message
Robin Jones (robin-networkfusion) said :
#2

1- is totally reproducable on demo.authpuppy.org... I am using IE8

2- I have also seen this on the demo site, but has been fixed for ages now!

Robin.

Revision history for this message
Monpelaud (monpelaud) said :
#3

I downloaded the last version (88) with bzr branch lp:authpuppy.
With firebug I don't see any call to load a css.
Here the code source of the page:

<h1>Plugin Manager</h1>

<p><a href="/plugin/manage/all">View all available plugins and updates</a></p>

<form method="post" action="/plugin/manage/save"> <table>
    <thead>
      <tr>
        <th>Plugin name</th>
        <th>Database update required?</th>

        <th>Enabled?</th>
      </tr>
    </thead>
    <tbody>
             <tr>
          <th><a href="/plugin/configure/apNodeCustomPlugin">apNodeCustomPlugin</a><br/>
               version: 0.1.0 (dev)</th>
         <td>No upgrade </td>

         <td><input type="checkbox" name="apPluginManagerList[apNodeCustomPlugin]" id="apPluginManagerList_apNodeCustomPlugin" /></td>
        </tr>
             <tr>
          <th><a href="/plugin/configure/apDashboardPlugin">apDashboardPlugin</a><br/>
               version: 0.1.0 (dev)</th>
         <td>No upgrade </td>
         <td><input type="checkbox" name="apPluginManagerList[apDashboardPlugin]" checked="checked" id="apPluginManagerList_apDashboardPlugin" /></td>
        </tr>

             <tr>
          <th>apWebServicePlugin<br/>
               version: 0.1.2 (dev)</th>
         <td>No upgrade </td>
         <td><input type="checkbox" name="apPluginManagerList[apWebServicePlugin]" checked="checked" id="apPluginManagerList_apWebServicePlugin" /></td>
        </tr>
             <tr>
          <th><a href="/wifidog/migration?">apWifidogMigrationPlugin</a><br/>
               version: 0.1.0 (dev)</th>

         <td>No upgrade </td>
         <td><input type="checkbox" name="apPluginManagerList[apWifidogMigrationPlugin]" checked="checked" id="apPluginManagerList_apWifidogMigrationPlugin" /></td>
        </tr>
             <tr>
          <th><a href="/plugin/configure/apAuthLocalUserPlugin">apAuthLocalUserPlugin</a><br/>
               version: 0.1.4 (alpha)</th>
         <td>No upgrade </td>

         <td><input type="checkbox" name="apPluginManagerList[apAuthLocalUserPlugin]" checked="checked" id="apPluginManagerList_apAuthLocalUserPlugin" /></td>
        </tr>
             <tr>
          <th><a href="/plugin/configure/apNodeExtraPlugin">apNodeExtraPlugin</a><br/>
               version: 0.1.2 (alpha)</th>
         <td>

How can manually disable a plugin ?
Where is stored the flag which says that a plugin enabled or disabled ?

Thanks

Revision history for this message
gbastien (gbastien02) said :
#4

1- Corrected on the last bzr. It appears that in the file apps/frontend/config/security.yml, the default was not taken into account, I changed it for all and now it's ok. But wonder why default doesn't work...

2- From the code you posted, it appears that only the form template was taken, even the action template (where the save button is) is not displayed. This is strange... Can you try http://authpuppy.localdomain/frontend_dev.php/plugin/manage. This url is for debug purposes. It does not use the cache and shows a debug bar at the top. If this one works, you may try a clear cache, by going to a terminal cd to the root directory of authpuppy and do a ./symfony cc

That said, to manually enable or disable plugins, you may edit the file config/authpuppy.yml. For example, mine looks like this:

all:
  ap_plugins_enabled:
    - apExternalCMSPlugin
    - apNodeExtraPlugin
    - apStatisticsPlugin
    - apAuthLocalUserPlugin
    - apWebServicePlugin
    - apNodeCustomPlugin
    - apWifidogMigrationPlugin
    - apDashboardPlugin
    - apConnectionPoliciesPlugin
  ap_modules_enabled:
    - apNodeExtra
    - apStatistics
    - apAuthLocalUserLogin
    - apWebService
    - apWifidogMigration
    - apDashboard
    - apConnectionPolicies

Revision history for this message
Monpelaud (monpelaud) said :
#5

Hi,

1- I downloaded and installed revision 89. Now "Administrative login" link works fine.

2- With the url "http://authpuppy.localdomain/frontend_dev.php/plugin/manage" I get this error message:
Fatal error: Cannot redeclare class Pernodeauth in /var/www/authpuppy/plugins/apNodeExtraPlugin/lib/migration/doctrine/001_pernodeauth.php on line 20
I manually disable, uninstall and delete apNodeExtraPlugin. Next, I make a fresh install of apNodeExtraPlugin and now It works fine.

Many thanks