[JBoss JIRA] (AS7-351) Implement the HttpService ontop of JBossWeb
by Thomas Diesler (JIRA)
[ https://issues.jboss.org/browse/AS7-351?page=com.atlassian.jira.plugin.sy... ]
Thomas Diesler edited comment on AS7-351 at 7/19/12 2:34 PM:
-------------------------------------------------------------
{code}
Wrapper osgiServletWrapper = context.createWrapper();
osgiServletWrapper.setName("???"); // Generate something ?
osgiServletWrapper.setServlet(servletInstance);
osgiServletWrapper.setServletClass(servletInstance.getClass().getName());
context.addChild(osgiServletWrapper);
context.addServletMapping(alias, "???");
// Must be added to the main mapper as no dynamic servlets usually
injectedWebServerService.getService().getMapper().addWrapper(injectedHost.getName(), context.getPath(), alias, osgiServletWrapper, false);
{code}
was (Author: thomas.diesler):
{code}
Wrapper osgiServletWrapper = context.createWrapper();
osgiServletWrapper.setName("???"); // Generate something ?
osgiServletWrapper.setServlet(servletInstance);
osgiServletWrapper.setServletClass(servletInstance.getClass().getName());
context.addChild(osgiServletWrapper);
context.addServletMapping(alias, "???");
// Must be added to the main mapper as no dynamic servlets usually
injectedWebServerService.getService().getMapper().addWrapper(injectedHost.getName(), context.getPath(), alias, osgiServletWrapper, false);{code}
> Implement the HttpService ontop of JBossWeb
> -------------------------------------------
>
> Key: AS7-351
> URL: https://issues.jboss.org/browse/AS7-351
> Project: Application Server 7
> Issue Type: Feature Request
> Components: OSGi, Web
> Reporter: Thomas Diesler
> Assignee: Thomas Diesler
> Priority: Critical
> Fix For: 7.2.0.CR1
>
> Attachments: DefaultHttpContext.java, http-service-1.2.pdf, HttpServiceImpl.java, registerServlet, ResourceServlet.java
>
>
> Resolving this issue consolidates the Http services that we ship and should replace pax-web with an HttpService implemenation based on JBossWeb.
> RFC-66 (WebApp) support is also covered by this issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (AS7-351) Implement the HttpService ontop of JBossWeb
by Thomas Diesler (JIRA)
[ https://issues.jboss.org/browse/AS7-351?page=com.atlassian.jira.plugin.sy... ]
Thomas Diesler commented on AS7-351:
------------------------------------
{code}
Wrapper osgiServletWrapper = context.createWrapper();
osgiServletWrapper.setName("???"); // Generate something ?
osgiServletWrapper.setServlet(servletInstance);
osgiServletWrapper.setServletClass(servletInstance.getClass().getName());
context.addChild(osgiServletWrapper);
context.addServletMapping(alias, "???");
// Must be added to the main mapper as no dynamic servlets usually
injectedWebServerService.getService().getMapper().addWrapper(injectedHost.getName(), context.getPath(), alias, osgiServletWrapper, false);{code}
> Implement the HttpService ontop of JBossWeb
> -------------------------------------------
>
> Key: AS7-351
> URL: https://issues.jboss.org/browse/AS7-351
> Project: Application Server 7
> Issue Type: Feature Request
> Components: OSGi, Web
> Reporter: Thomas Diesler
> Assignee: Thomas Diesler
> Priority: Critical
> Fix For: 7.2.0.CR1
>
> Attachments: DefaultHttpContext.java, http-service-1.2.pdf, HttpServiceImpl.java, registerServlet, ResourceServlet.java
>
>
> Resolving this issue consolidates the Http services that we ship and should replace pax-web with an HttpService implemenation based on JBossWeb.
> RFC-66 (WebApp) support is also covered by this issue.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (AS7-5227) Add javax.annotation.api capability
by Thomas Diesler (JIRA)
Thomas Diesler created AS7-5227:
-----------------------------------
Summary: Add javax.annotation.api capability
Key: AS7-5227
URL: https://issues.jboss.org/browse/AS7-5227
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.2.0.Alpha1
The pax-web-2.0.2 has a requirement on javax.annotation.security
{code}
Unable to resolve HostBundleRevision[org.eclipse.jetty.aggregate.jetty-all-server:8.1.4.v20120524]: missing requirement XPackageRequirement[atts={osgi.wiring.package=javax.annotation.security, version=[1.1,2)},[org.eclipse.jetty.aggregate.jetty-all-server:8.1.4.v20120524]]]
{code}
which prevents HttpService functionality based on servlet-3.0
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (AS7-5223) OSGi WebApps cannot serve static content
by Thomas Diesler (JIRA)
Thomas Diesler created AS7-5223:
-----------------------------------
Summary: OSGi WebApps cannot serve static content
Key: AS7-5223
URL: https://issues.jboss.org/browse/AS7-5223
Project: Application Server 7
Issue Type: Bug
Components: OSGi, Web
Reporter: Thomas Diesler
Assignee: Thomas Diesler
{code}
Running org.jboss.test.osgi.example.jbossas.webapp.WebAppTestCase
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 13.525 sec <<< FAILURE!
Results :
Tests in error:
testResourceAccess(org.jboss.test.osgi.example.jbossas.webapp.WebAppTestCase): http://localhost:8080/example-webapp/message.txt
Tests run: 3, Failures: 0, Errors: 1, Skipped: 0
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (AS7-3995) make add-users.sh/bat script have domain directory location a parameter
by Nicholas DiPiazza (JIRA)
Nicholas DiPiazza created AS7-3995:
--------------------------------------
Summary: make add-users.sh/bat script have domain directory location a parameter
Key: AS7-3995
URL: https://issues.jboss.org/browse/AS7-3995
Project: Application Server 7
Issue Type: Feature Request
Components: ConfigAdmin
Affects Versions: 7.1.0.Final
Environment: all
Reporter: Nicholas DiPiazza
Assignee: Thomas Diesler
Priority: Minor
add-users.sh / add-users.bat hard codes the location of the domains directory.
Would be very useful for some deployments if this were optional so that the domain could be in a different directory.
So...
org.jboss.as.domain.management.security.AddPropertiesUser
private boolean findFiles(final String jbossHome, final List<File> foundFiles, final String fileName) {
File standaloneProps = new File(jbossHome + "/standalone/configuration/" + fileName);
if (standaloneProps.exists()) {
foundFiles.add(standaloneProps);
}
File domainProps = new File(jbossHome + "/domain/configuration/" + fileName);
if (domainProps.exists()) {
foundFiles.add(domainProps);
}
Could become:
private boolean findFiles(final String jbossHome, final List<File> foundFiles, final String fileName) {
File standaloneProps = new File(jbossHome + "/standalone/configuration/" + fileName);
if (standaloneProps.exists()) {
foundFiles.add(standaloneProps);
}
File domainProps = new File((DOMAIN_ROOT_DIRECTORY == NULL ? jbossHome : DOMAIN_ROOT_DIRECTORY)+ "/domain/configuration/" + fileName);
if (domainProps.exists()) {
foundFiles.add(domainProps);
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months
[JBoss JIRA] (SECURITY-669) JBossResponseContext getResult() does not copy obligation assignments
by Dominic Messenger (JIRA)
Dominic Messenger created SECURITY-669:
------------------------------------------
Summary: JBossResponseContext getResult() does not copy obligation assignments
Key: SECURITY-669
URL: https://issues.jboss.org/browse/SECURITY-669
Project: PicketBox (JBoss Security and Identity Management)
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JBossXACML
Affects Versions: jbossxacml_2.0.6.Final
Reporter: Dominic Messenger
Assignee: Anil Saldhana
Affects jbossxacml 2.0.8.Final and below.
JBossresponseContext.getResult() copies obligations from the sunxacml result, but does not copy the attribute assignments:
The code block (lines 156-164):
ObligationsType obligationsType = new ObligationsType();
for(Obligation obl:obligationsSet)
{
ObligationType obType = new ObligationType();
obType.setObligationId(obl.getId().toASCIIString());
obType.setFulfillOn(EffectType.fromValue(Result.DECISIONS[obl.getFulfillOn()]));
obligationsType.getObligation().add(obType);
}
Should read something like:
ObligationsType obligationsType = new ObligationsType();
for(Obligation obl:obligationsSet)
{
ObligationType obType = new ObligationType();
obType.setObligationId(obl.getId().toASCIIString());
obType.setFulfillOn(EffectType.fromValue(Result.DECISIONS[obl.getFulfillOn()]));
for(Object attrValue : obl.getAssignments()) {
Attribute attr = (Attribute)attrValue;
AttributeAssignmentType aaType = new AttributeAssignmentType();
aaType.setAttributeId(attr.getId().toASCIIString());
aaType.setDataType(attr.getType().toASCIIString());
aaType.getContent().add(attr.getValue());
obType.getAttributeAssignment().add(aaType);
}
obligationsType.getObligation().add(obType);
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 11 months