Community moderators have prevented the ability to post new answers.
On a production server, the CSS and JS files defined in atlassian-plugin.xml are batched, so save delivery time. More Info here: http://confluence.atlassian.com/display/CONFDEV/Web+Resource+Module#WebResourceModule-BatchedMode
Is this what you are experiencing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What I was exeriencing was that at the after-encoding portion of the filter process, and by the time I would reach the before-dispatch step, the requirement I set would be gone. If I restated the requirement in the before-dispatch step, the css file would be downloaded to the browser. (It may show up as well in earlier steps, I just went with the solution that worked).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to get the requirement satisfied by adding another class later on in the filter chain. The first filter with a location of after-encoding sets a session variable for the later one to use. Then the second filter, which has a location of before-dispatch, checks the session variable and performs the resourceRequirement() as appropriate.
It appears as if requirements dissappear at some point in the filter chain??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also note:
When changing the first filter to before-dispatch it was still able to perform its authentication when needed, and eliminated the need for the second plugin to inject the CSS.
At some point in the filtering chain, resources must be getting cleared out by one of the packaged filters. (Confluence 3.4.8)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having trouble with a web resource not downloading (Firebug doesn't show it in the list of css files)
In my servlet filter (which identifies anonymous users correctly) I have the following line, which is working on the standalone development server, but not on the "live" server I upload the plugin to:
_wrm.requireResource(
"com.veson.confluence.plugin.vnc_custom:vnc_anon_styles"
);
(_wrm) is the webResourceManager that gets injected.
Any idea why it works on the dev server (using atlas-run) and not the live server (uploaded through Confluence Admin)?