History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: BLZ-168
Type: Minor Enhancement Minor Enhancement
Status: Closed Closed
Resolution: Not a Bug
Assignee: hsee
Reporter: Ivan Latysh
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
BlazeDS

Improve MessageBrokerServlet.getFlexWritePath()

Created: 05/09/08 03:02 PM   Updated: 05/13/08 07:59 AM
Component/s: Configuration
Security Level: Public (All JIRA Users )

File Attachments: 1. Java Source File MyMessageBrokerServlet.java (2 kb)


Severity: Enhancement/Task
Reproducibility: Every Time
Discoverability: Very Low
Found in Version: BlazeDS 3.0.2
Affected OS(s): All OS Platforms - All
Steps to Reproduce:
getFlexWritePath() method use some weird logic while trying to resolve absolute path as relative.

[quote from method comments]
- must be specified relative to context root starting with '/'
- must be specified as an absolute path
[/quote]
According to javadoc a path that start from '/' is absolute and will be resolved as such.

And method never consult with SecurityManager, when it must.

Attached a class with modified method.
Language Found: English
Bugbase Id: none
Triaged: No
Regression: No
QA Owner: hsee
Resolved by: Mete Atamel
Participants: hsee, Ivan Latysh and Mete Atamel
Browser: Firefox 2.x
JDK: Sun JDK 6
Application Server: JBoss Applications Server 4.2.x


 All   Comments      Sort Order:
Mete Atamel - [05/12/08 01:46 PM ]
We recently removed MessageBrokerServlet.get/setFlexWritePath method as it was not used anymore, so we can mark this as NAB.

hsee - [05/13/08 07:59 AM ]
This API is no longer avaliable.