You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/11/02 20:05:30 UTC

[Bug 60333] New: inconsistency in folder name from webapps to work folder

https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

            Bug ID: 60333
           Summary: inconsistency in folder name from webapps to work
                    folder
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
          Assignee: dev@tomcat.apache.org
          Reporter: prahalad.prabhakar@sap.com
  Target Milestone: ----

Hi,

When we deploy a web application which has a "#" symbol in its name (eg .
SAPBI#BOE ) in the webapps folder , until tomcat 7.0.67 , it would
automatically replace the "#" symbol with the "_" symbol (ie SAPBI_BOE) in the
work folder.

Also while accessing the URL as <localhost>:<port>/SAPBI/BOE it would
successfully be mapped to the SAPBI_BOE folder in work directory.

However the same isn't being observed from Tomcat 8. In all the newer versions
of Tomcat (ie. 8 onwards and even on 9 ) the webapps and work direcotry have
the same name.

This is causing our application deployment to Fail.

However , if we rename the same web application as SAPBI_BOE in the webapps
folder , it creates the same folder in work and it is accessible via the URL :
<localhost>:<port>/SAPBI_BOE.

Attaching a sample war file for reference. Kindly copy the same to webapps
folder and restart tomcat 8.0.1 and above.


Thanks,
Prahalad.
SAP Business Objects

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60333] inconsistency in folder name from webapps to work folder

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
                 OS|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
No sample WAR has been provided.

An application should not be making any assumptions about the name, location or
accessibility of the work directory.

I have performed a quick test and web applications that contain a '#' are
handled correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60333] inconsistency in folder name from webapps to work folder

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Mark Thomas <ma...@apache.org> ---
It is in the 8.0.x changelog. Bug 54708.

Please stop re-opening this issue. The implementation isn't going to change.
The primary reason is that using '_' has the potential for conflicts since
foo_bar.war is a valid WAR name and that would conflict with foo#bar.war if '#'
was replaced with '_'

If Equinox can't handle file paths with '#' (I suspect because those characters
need to be encoded in URLs) then that is a bug that needs to be fixed in
Equinox.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60333] inconsistency in folder name from webapps to work folder

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

Prahalad Prabhakar <pr...@sap.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from Prahalad Prabhakar <pr...@sap.com> ---
Hi,

Due to larger file size the war didn't upload properly.
Kindly use the following URL for the sample war file - 

https://drive.google.com/file/d/0B98HdOP1i77Fd3NSNjVOd0RnbXM/view?usp=sharing


Upon placing the war file namely GTC#bridge.war in webapps , it first unpacks
the war with its contents with the exact same name.

Next in work folder it created a folder with same name ( GTC#bridge ).

However the same is not observed in tomcat 7.0.67.

Only from versions 8.0.1 onwards this is seen.

While placing the same war in tomcat 7.0.67 it unpacks the war with the same
name in webapps.

But in work folder , it renames the folder from GTC#bridge to GTC_bridge with
the exact same contents.

Herein lies what i preceive is the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60333] inconsistency in folder name from webapps to work folder

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|REOPENED                    |RESOLVED

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
Tomcat is free to structure the work directory any way it pleases. The 8.0.x
behaviour is by design.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60333] inconsistency in folder name from webapps to work folder

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

--- Comment #6 from Christopher Schultz <ch...@christopherschultz.net> ---
One weird consequence of using # in path names is just that: if they are used
in URLs (e.g. ClassLoader.getResource()), they can fail because the # does
funny things. I haven't done extensive testing, but I would hope at least that
ServletContext.getResource() would return a URL that does not throw an error or
fail to load the file due to a # present in the path.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60333] inconsistency in folder name from webapps to work folder

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

Prahalad Prabhakar <pr...@sap.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #4 from Prahalad Prabhakar <pr...@sap.com> ---
Hi

That's is a fair point you have made . 

Let me lay a little context here, as to how this design change is impacting us.

We use Equinox OSGI packages within our war for creating self sustained
components.

Equinox OSGI however has a restriction on the folder name with the special
charecter ( the likes of % and # ) and each time it encounters these charecters
it would not begin and hence cause none of our components to load leading a
failure of deployment.

However since until tomcat 7.0.67 the application folder name in work directory
automatically replaced the '#' with an "_" it did not cause any problems.

However with the new design in tomcat 8.0.1 onwards this behavior is not
observed causing our application to fail.

Kindly provide us an official release notes in this regard.

Thanks,
Prahalad.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 60333] inconsistency in folder name from webapps to work folder

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60333

--- Comment #7 from Prahalad Prabhakar <pr...@sap.com> ---
Thanks for the speedy updates.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org