This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 169793 - inconsistent use of slash in text fields
Summary: inconsistent use of slash in text fields
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P4 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks: 169782
  Show dependency tree
 
Reported: 2009-08-04 10:37 UTC by Ondrej Langr
Modified: 2009-08-12 18:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Langr 2009-08-04 10:37:30 UTC
While some directories entered need to end with "/", others must not. 

1) In the first wizard step - URL must be a directory and end with "/"
2) In the manage connection dialog - folder must not end with "/"

Please provide flexibility to either use or do not use "/" for the second case. 





Recommendation:
Provide more flexibility and let the user focus on the goal, not on the syntax of data entered.
Comment 1 Tomas Mysik 2009-08-06 15:13:23 UTC
> 2) In the manage connection dialog - folder must not end with "/"

One note - the upload directory must start with "/" because user _must_ understand what he is doing (it _must_ be an absolute path and without the
starting slash it is a relative path which is incorrect). I will remove the check for the ending slash (and add it automatically if it's missing).
Comment 2 Tomas Mysik 2009-08-06 15:15:02 UTC
> and add it automatically if it's missing

Should be "remove it automatically if it's present", of course.
Comment 3 Tomas Mysik 2009-08-12 09:57:20 UTC
Fixed, please verify. Thanks.
http://hg.netbeans.org/web-main/rev/4addda25de61
Comment 4 Quality Engineering 2009-08-12 18:06:18 UTC
Integrated into 'main-golden', will be available in build *200908121401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4addda25de61
User: Tomas Mysik <tmysik@netbeans.org>
Log: #169793: inconsistent use of slash in text fields