Problem with attachment in Customer Portal when using mod_openam.so

Raffaele Verre April 20, 2017

Hi guys ,
I have a problem with the Customer Portal and mod_openam.so.
Jira is currently running behind an Apache that load, via virtualhost, the mod_openam.so module.
When this module is active, I cannot attach a file with size larger than 18kb and I get the error:

Java.lang.IllegalArgumentException: size should be a non-negative number. Got: -1
At com.atlassian.jira.util.dbc.Assertions.nonNegative (Assertions.java:230)
At com.atlassian.jira.issue.attachment.DefaultTemporaryWebAttachmentManager.createTemporaryWebAttachment (DefaultTemporaryWebAttachmentManager.java:90)

If I turn off the module, it's okay.

I have this error only if I attach the file via Customer Portal.

Any ideas?

Thank you!

1 answer

0 votes
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 1, 2017

While researching support cases to look for precedents I found a ticket on which you are the reporter. One of your team mates commented on the ticket that the issue is resolved when you add:

SetEnv proxy-sendcl 0

to the configuration.

I understand the openam.so module is needed for integration with Forgerock OpenAM, so I am hoping someone with more familiarity with that will pipe up.

 

Suggest an answer

Log in or Sign up to answer