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 133703 - Copy source files to another location may create wrong project URL
Summary: Copy source files to another location may create wrong project URL
Status: VERIFIED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-22 18:43 UTC by tonybeckham
Modified: 2008-07-24 18:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of properties window showing generated name different than project name (41.65 KB, image/png)
2008-04-22 18:47 UTC, tonybeckham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2008-04-22 18:43:54 UTC
For the sample application, when you us the properties dialog to copy the files from the source folder to another
location, the name is for the destination is always http://localhost/AirAlliance/ even if the project is named
AirAlliance2 etc. (see screen shot)

Work around is to manually adjust generated path.

System Info:
Product Version: NetBeans IDE Early Access for PHP (Build 200804221056)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (php)

Steps:
1. Create PHP sample AirAlliance
2. Create anothe PHP AirAlliance sample application (this one will be named AirAlliance2)
3. When you perform the step to copy source files to another location, the location will be set to
http://localhost/AirAlliance/ when it should be  http://localhost/AirAlliance2/
Comment 1 tonybeckham 2008-04-22 18:47:11 UTC
Created attachment 60571 [details]
Screen shot of properties window showing generated name different than project name
Comment 2 tonybeckham 2008-04-22 18:50:30 UTC
Changed summary to better reflect the issue.

I should also mention that while the steps I provided will work, when you run AirAlliance2 it is acually using the URL
for AirAlliance.  To see, you can delete AirAlliance folder from the htdoc root.  Now when you run AirAlliance2 you get
404 error.  You can change the url and it works.

Reproducible on all platforms.
Comment 3 Tomas Mysik 2008-04-23 08:56:57 UTC
Short clarification about project name, project sources, copy-to-folder directories and project URL:
- in new PHP project wizard
This feature was implemented in the end of the development cycle so it is not perfect - it works only for project name 
and sources, copy-to-folder is not taken into account currectly. Will be improved probably.

- in customizer
No such functionality in customizer is implemented now and it is intentional. Could be evaluated again of course.

Thanks for reporting.
Comment 4 Tomas Mysik 2008-06-20 15:13:08 UTC
Reading once more all the comments, looks like an issue against PHP Sample (AirAlliance). Am I right? Are you able to 
reproduce your issue with your own PHP project (not sample)? Please notice that in the development version of NB there 
is a new PHP project wizard. Thanks.
Comment 5 Tomas Mysik 2008-07-24 14:12:26 UTC
No response from reporter for a long time, so closing as WORKSFORME. Feel free to reopen this issue if the problem 
still exists. Thanks for reporting.
Comment 6 tonybeckham 2008-07-24 18:48:32 UTC
Verified Works correctly.

Product Version: NetBeans IDE Dev (Build 200807240010)
Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52
System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)