You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by "Paul Sharples (JIRA)" <ji...@apache.org> on 2012/10/30 12:38:12 UTC

[jira] [Created] (WOOKIE-391) Changing the default widget.widgetfolder in widgetserver.properties can cause folder not found issues

Paul Sharples created WOOKIE-391:
------------------------------------

             Summary: Changing the default widget.widgetfolder in widgetserver.properties can cause folder not found issues
                 Key: WOOKIE-391
                 URL: https://issues.apache.org/jira/browse/WOOKIE-391
             Project: Wookie
          Issue Type: Bug
          Components: Server
            Reporter: Paul Sharples
            Priority: Minor


If a user changes the default widget.widgetfolder to another location (such as the old wservices folder for example), then this can cause problems. If the folder does not already exist then wookie fails to import any widgets.  Manually creating the folder fixes the problem. We should add a check to read the property first and then check if that folder is there, creating it if needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WOOKIE-391) Changing the default widget.widgetfolder in widgetserver.properties can cause folder not found issues

Posted by "Paul Sharples (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WOOKIE-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486825#comment-13486825 ] 

Paul Sharples commented on WOOKIE-391:
--------------------------------------

Code to catch it is already there in 'org.apache.wookie.server.Dianostics'.  I'm not sure if we should try to create the folder here instead of just displaying a message when its not found.
                
> Changing the default widget.widgetfolder in widgetserver.properties can cause folder not found issues
> -----------------------------------------------------------------------------------------------------
>
>                 Key: WOOKIE-391
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-391
>             Project: Wookie
>          Issue Type: Bug
>          Components: Server
>            Reporter: Paul Sharples
>            Priority: Minor
>
> If a user changes the default widget.widgetfolder to another location (such as the old wservices folder for example), then this can cause problems. If the folder does not already exist then wookie fails to import any widgets.  Manually creating the folder fixes the problem. We should add a check to read the property first and then check if that folder is there, creating it if needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WOOKIE-391) Changing the default widget.widgetfolder in widgetserver.properties can cause folder not found issues

Posted by "Scott Wilson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WOOKIE-391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496035#comment-13496035 ] 

Scott Wilson commented on WOOKIE-391:
-------------------------------------

+1 I think that would make sense. 

The only reason you might not want to do this would be if there is a typo in the properties - for example you already do have a folder ready called "mywidgets" but typed "mywodgets" in widgetserver.properties. However, I think thats more of an edge case where the admin could revert it themselves to fix.

The other option is to make the behaviour configurable, but I don't think in this case that would really add much value.
                
> Changing the default widget.widgetfolder in widgetserver.properties can cause folder not found issues
> -----------------------------------------------------------------------------------------------------
>
>                 Key: WOOKIE-391
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-391
>             Project: Wookie
>          Issue Type: Bug
>          Components: Server
>            Reporter: Paul Sharples
>            Priority: Minor
>             Fix For: 0.13.0
>
>
> If a user changes the default widget.widgetfolder to another location (such as the old wservices folder for example), then this can cause problems. If the folder does not already exist then wookie fails to import any widgets.  Manually creating the folder fixes the problem. We should add a check to read the property first and then check if that folder is there, creating it if needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira