[jbosstools-issues] [JBoss JIRA] (JBIDE-11721) Project location input is not validated in New Project Example wizard

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Tue May 1 09:46:18 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-11721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689138#comment-12689138 ] 

Snjezana Peco commented on JBIDE-11721:
---------------------------------------

The issue can also be reproduced in m2e. 
In m2e,  this issue happens because the validate method isn't called when changing the workspace checkbox. The m2e validate method also doesn't check if the output directory is writable.

The problem in the project examples was that the ArchetypeExamplesWizardFirstPage.validate method was overriding validation in the superclass.

I have fixed the problem in JBT, created a workaround for the m2e bug and created a bug against m2e - https://bugs.eclipse.org/bugs/show_bug.cgi?id=378153
                
> Project location input is not validated in New Project Example wizard
> ---------------------------------------------------------------------
>
>                 Key: JBIDE-11721
>                 URL: https://issues.jboss.org/browse/JBIDE-11721
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: central
>    Affects Versions: 3.3.0.Beta2
>            Reporter: Viacheslav Kabanovich
>            Assignee: Snjezana Peco
>
> EXECUTE: Open JBoss Central and click link 'HTML5 Project'.
> EXECUTE: On wizard's second page, remove check at 'Use default Workspace location'
> EXECUTE: Make input field 'Location' empty manually, if it does not become empty automatically.
> ASSERT: Finish is disabled and wizard displays an error message.
> FAILURE: Finish is enabled, no error message.
> EXECUTE: Run finish with empty 'Location'. (That may not be possible when the validation is fixed.)
> FAILURE: Wizard completes with many exceptions and displays window "'HTML5 Project' Project is now ready", "Show '/poh5/README.md' for further instructions", which results in more exceptions.
> (Linux)
> Repeat the first two steps, then
> EXECUTE: Fill input field 'Location' with non-existing path "abc".
> ASSERT: Finish is disabled and wizard displays an error message. (Compare with New Java project, or another standard project)
> FAILURE: Finish is enabled, no error message.
> EXECUTE: Run finish. (That may not be possible when the validation is fixed.)
> NON-STANDARD: Wizard completes successfully, project is created in Eclipse installation folder.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list