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 189186 - project url expected end with '/'
Summary: project url expected end with '/'
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 00:11 UTC by mmuru
Modified: 2010-08-11 03:12 UTC (History)
1 user (show)

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 mmuru 2010-08-04 00:11:15 UTC
To run or debug php web project in NB69, the run time configuration "Project Url" expects the URL to end with '/'. 

Many situation, the project url can be without '/' or w/o default index file 

It is very annoying and hard to debug the project.

Example:
http://localhost/test - does not work
http://localhost/test/hello - does not work

I really appreciate a workaround for this issue till it gets resolved.

Best,
Muru
Comment 1 rmatous 2010-08-04 12:28:34 UTC
Discussed many times AFAIK, please justify this requirement by commenting a little bit and reopen(now treated as incomplete and waiting for your input) if you strongly believe this should be fixed or changed.

Anyway PHP->Project is the right category here
Comment 2 mmuru 2010-08-04 14:49:13 UTC
Currently, developinng symfony framework based php web application using NB69 and most of the page url don't end with '/' and they are absolutely valid. 

Everything else is working in NB except this one issue annoying hence unable to run and debug these pages individually. 

I strongly feel this should be fixed or at least provide an option to enable/disable in the "advanced tab" of the run time configuration.

Please, don't close this issue w/o provide me a workaround for it. 

Let me know if you need additional information.
Comment 3 Tomas Mysik 2010-08-05 12:46:22 UTC
Well, this could be perhaps changed but 2 things need to be kept in mind:
1) Project URL should point to a "directory" - why? Because if you Run File, the relative path of the file is appended to the Project URL (so something like "http://localhost/index.phpmy/file.php" could be the result)
2) I believe that the "start" file is needed for debugger - Radku, can you confirm, please? Or are we able to start debugging e.g. "http://localhost/hello" and the debugger will work?

In any case, I will look at it and try to change it if possible.

Thanks.
Comment 4 mmuru 2010-08-05 17:51:26 UTC
1. anyone can use DirectoryIndex apache directive points to a start up file and should not be assumed it always index.php
2. http://localhost/start is not directory. It is a valid url of the page. may or may not have extension 
3. In symfony, one can use 'routing.yml' to reconfigure how to access each pages 
a.k.s rewrite 

In any case, NB should have flexible options for project run-time configurations

In mean time, please let me know is there any workaround for issue? 

TIA
-Muru
Comment 5 Tomas Mysik 2010-08-06 07:07:14 UTC
(In reply to comment #4)
> 1. anyone can use DirectoryIndex apache directive points to a start up file and
> should not be assumed it always index.php

Yes and this could be the problem for debugger - Radku, can you confirm whether we need to know the "start" file or not? Thanks.

> 2. http://localhost/start is not directory. It is a valid url of the page. may
> or may not have extension 

Sorry, not sure why you mention this point.

> 3. In symfony, one can use 'routing.yml' to reconfigure how to access each
> pages a.k.s rewrite 

Again, this could be a problem for the debugger, not for running a file/project.

> In any case, NB should have flexible options for project run-time
> configurations

Agreed.

> In mean time, please let me know is there any workaround for issue? 

No.
Comment 6 Tomas Mysik 2010-08-10 09:04:16 UTC
Fixed, please verify. Thanks.
http://hg.netbeans.org/web-main/rev/622b25c32dc8
Comment 7 Quality Engineering 2010-08-11 03:12:45 UTC
Integrated into 'main-golden', will be available in build *201008110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/622b25c32dc8
User: Tomas Mysik <tmysik@netbeans.org>
Log: #189186: project url expected end with '/'