Den 23.04.2016 22.37, skrev Rick Hillegas:
> On 4/23/16 10:07 AM, Kristian Waagan wrote:
>> Den 23.04.2016 17.50, skrev Bryan Pendleton:
>>> On 4/23/2016 7:20 AM, Rick Hillegas wrote:
>>>> Does anyone know what the problem is?
>>>>
>>> No, I'm not sure, sorry.
>>>
>>> I can see that Jenkins build #261 was automatically initiated
>>> after your patch for DERBY-6883 was committed, and the build
>>> job finished with SUCCESS:
>>>
>>>      https://builds.apache.org/job/Derby-docs/261/
>>>
>>> And, in the artifacts of the build, I can see your updated docs:
>>>
>>>     
>>> https://builds.apache.org/job/Derby-docs/261/artifact/trunk/out/ref/rrefsqlj81859.html
>>>
>>>
>>>
>>> But the automatic linkage from "lastSuccessfulBuild" to build 261
>>> doesn't seem to be working, as
>>>
>>>     
>>> https://builds.apache.org/job/Derby-docs/lastSuccessfulBuild/artifact/trunk/out/ref/index.html
>>>
>>>
>>>
>>> is not showing any content for me, it's just a couple top level
>>> browser frames and a blank screen.
>>>
>>> I don't recall any changes to this mechanism recently; is it
>>> possible that this is a problem on the Jenkins side rather than
>>> with your commit?
>> Hi,
>>
>> This looks like a problem rooted in CSP (Content Security Policy) -
>> check your browsers' console.
>>
>> I can't tell what has made the problem (which is actually a security
>> feature :)) manifest, i.e. due to changes in web browsers, or how the
>> HTTP server is setting the HTTP header. Could potentially even be a
>> Jenkins update.
>>
>> If you must access the site as it is, there are plugins to disable CSP
>> in the browser(s).
>>
>>
>> Regards,
> Thanks, Kristian and Bryan. I see the same behavior when using Firefox,
> Safari, and Chrome. The Firefox error console reports:
> 
> Content Security Policy: Couldn't process unknown directive 'sandbox'
> <unknown>
> Content Security Policy: The page's settings blocked the loading of a
> resource at
> https://builds.apache.org/job/Derby-docs/lastSuccessfulBuild/artifact/trunk/out/ref/toc.html
> ("default-src 'none'").
> 
> That's all Greek to me. Can anyone help parse that output and point a
> finger at what is broken (or who should be consulted)?

Based on [1] this looks like a relatively new change in Jenkins.
Infra may have given this some thought, or Jenkins is simply running
with the very restrictive defaults.

I believe you have to get the HTTP headers coming from Jenkins modified
for the current setup to work, and for that you'll need help from
someone with more karma.
If the CSP settings in Jenkins can't be changed (technically or
otherwise), we may have to find another way to host the alpha docs.


-- 
Kristian

[1]
https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy

> 
> Thanks,
> -Rick

Reply via email to