You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Filippo Diotalevi (JIRA)" <ji...@apache.org> on 2009/03/26 23:01:54 UTC

[jira] Created: (FELIX-1003) Saving Apache Felix OSGI Management Console on Safari cause Error 404

Saving Apache Felix OSGI Management Console on Safari cause Error 404
---------------------------------------------------------------------

                 Key: FELIX-1003
                 URL: https://issues.apache.org/jira/browse/FELIX-1003
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-1.2.8, webconsole-1.2.2
         Environment: Safari 3.2.1, Mac Os X 10.5.6
            Reporter: Filippo Diotalevi
            Priority: Minor


1- Click on Configuration Tab
2- Choose Configurations:  Apache Felix OSGI Management Console (... OsgiManager)
3- Click on Configure
4- Click on Save

I get:
HTTP ERROR: 404
NOT_FOUND
RequestURI=/system/console/configMgr/org.apache.felix.webconsole.internal.servlet.OsgiManager

On Firefox the same functionality works well.




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-1003) Saving Apache Felix OSGI Management Console on Safari cause Error 404

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler reassigned FELIX-1003:
---------------------------------------

    Assignee: Carsten Ziegeler

> Saving Apache Felix OSGI Management Console on Safari cause Error 404
> ---------------------------------------------------------------------
>
>                 Key: FELIX-1003
>                 URL: https://issues.apache.org/jira/browse/FELIX-1003
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-1.2.2, webconsole-1.2.8
>         Environment: Safari 3.2.1, Mac Os X 10.5.6
>            Reporter: Filippo Diotalevi
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>
> 1- Click on Configuration Tab
> 2- Choose Configurations:  Apache Felix OSGI Management Console (... OsgiManager)
> 3- Click on Configure
> 4- Click on Save
> I get:
> HTTP ERROR: 404
> NOT_FOUND
> RequestURI=/system/console/configMgr/org.apache.felix.webconsole.internal.servlet.OsgiManager
> On Firefox the same functionality works well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-1003) Saving Apache Felix OSGI Management Console on Safari cause Error 404

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler closed FELIX-1003.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: webconsole-1.2.10

The fix has been released with 1.2.10 - therefore closing this bug

> Saving Apache Felix OSGI Management Console on Safari cause Error 404
> ---------------------------------------------------------------------
>
>                 Key: FELIX-1003
>                 URL: https://issues.apache.org/jira/browse/FELIX-1003
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-1.2.2, webconsole-1.2.8
>         Environment: Safari 3.2.1, Mac Os X 10.5.6
>            Reporter: Filippo Diotalevi
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: webconsole-1.2.10
>
>
> 1- Click on Configuration Tab
> 2- Choose Configurations:  Apache Felix OSGI Management Console (... OsgiManager)
> 3- Click on Configure
> 4- Click on Save
> I get:
> HTTP ERROR: 404
> NOT_FOUND
> RequestURI=/system/console/configMgr/org.apache.felix.webconsole.internal.servlet.OsgiManager
> On Firefox the same functionality works well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1003) Saving Apache Felix OSGI Management Console on Safari cause Error 404

Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689921#action_12689921 ] 

Filippo Diotalevi commented on FELIX-1003:
------------------------------------------

It seems to be a "natural" problem.

When an updated configuration is saved, the method OsgiManager.updateConfiguration(..) is called. 

At OsgiManager, line 765 the servlet is unregistered and it's registered with a new configuration shortly after. That's correct and I don't see how it could be improved (I tried to move unbind and binding "closer", but with no luck... I guess the re-registration takes some millisec to be effective).

Since the redirect happens while the new servlet registration is not effective yet, the 404 error is returned.

The only workaround I could find is to place a Thread.sleep(200l) (conditioned to the fact that the Console configurations are changed) just before the 
 this.sendRedirect(request, response, redirect);
at ConfigManager, line 115 

Ugly hack. Can anybody suggest a better solution?

> Saving Apache Felix OSGI Management Console on Safari cause Error 404
> ---------------------------------------------------------------------
>
>                 Key: FELIX-1003
>                 URL: https://issues.apache.org/jira/browse/FELIX-1003
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-1.2.2, webconsole-1.2.8
>         Environment: Safari 3.2.1, Mac Os X 10.5.6
>            Reporter: Filippo Diotalevi
>            Priority: Minor
>
> 1- Click on Configuration Tab
> 2- Choose Configurations:  Apache Felix OSGI Management Console (... OsgiManager)
> 3- Click on Configure
> 4- Click on Save
> I get:
> HTTP ERROR: 404
> NOT_FOUND
> RequestURI=/system/console/configMgr/org.apache.felix.webconsole.internal.servlet.OsgiManager
> On Firefox the same functionality works well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (FELIX-1003) Saving Apache Felix OSGI Management Console on Safari cause Error 404

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694481#action_12694481 ] 

Carsten Ziegeler commented on FELIX-1003:
-----------------------------------------

We have similar issues at other places like when you start a bundle we have to wait a little bit just to return the started state of the bundle etc.
In all these cases, we do a sleep already :)
Therefore I think your suggestion makes sense, I'll change the code accordingly

> Saving Apache Felix OSGI Management Console on Safari cause Error 404
> ---------------------------------------------------------------------
>
>                 Key: FELIX-1003
>                 URL: https://issues.apache.org/jira/browse/FELIX-1003
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-1.2.2, webconsole-1.2.8
>         Environment: Safari 3.2.1, Mac Os X 10.5.6
>            Reporter: Filippo Diotalevi
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>
> 1- Click on Configuration Tab
> 2- Choose Configurations:  Apache Felix OSGI Management Console (... OsgiManager)
> 3- Click on Configure
> 4- Click on Save
> I get:
> HTTP ERROR: 404
> NOT_FOUND
> RequestURI=/system/console/configMgr/org.apache.felix.webconsole.internal.servlet.OsgiManager
> On Firefox the same functionality works well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.