I've a Foreman version 1.14.1 installed. I've a problem with update of 
settings. 

When I click and change a setting, there is a circle with waiting screen 
and nothing happens, after reloading the page the settings is unchanged.

I've inspected what happens after changing a setting, and a javascript is 
run and gets 403 after PUT as below: 

Failed to load resource: the server responded with a status of 403 
(Forbidden)
settings:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.le.parseJSON (bundle-9671b40e053a06666c68.js:31)
    at HTMLSpanElement.error 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249)
    at t.<anonymous> 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323)
    at Object.r (bundle-9671b40e053a06666c68.js:19)
    at c (bundle-9671b40e053a06666c68.js:29)
    at Object.fireWith [as rejectWith] (bundle-9671b40e053a06666c68.js:29)
    at n (bundle-9671b40e053a06666c68.js:31)
    at XMLHttpRequest.t (bundle-9671b40e053a06666c68.js:31)
bundle-9671b40e053a06666c68.js:31 PUT 
https://aaaa.aaaa.caaa.com/settings/email_reply_address 403 (Forbidden)
send @ bundle-9671b40e053a06666c68.js:31
ajax @ bundle-9671b40e053a06666c68.js:31
(anonymous) @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
save @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
e.saveWithUrlHook @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
submit @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
r @ bundle-9671b40e053a06666c68.js:19
dispatch @ bundle-9671b40e053a06666c68.js:30
v.handle @ bundle-9671b40e053a06666c68.js:29
settings:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.le.parseJSON (bundle-9671b40e053a06666c68.js:31)
    at HTMLSpanElement.error 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249)
    at t.<anonymous> 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323)
    at Object.r (bundle-9671b40e053a06666c68.js:19)
    at c (bundle-9671b40e053a06666c68.js:29)
    at Object.fireWith [as rejectWith] (bundle-9671b40e053a06666c68.js:29)
    at n (bundle-9671b40e053a06666c68.js:31)
    at XMLHttpRequest.t (bundle-9671b40e053a06666c68.js:31)
le.parseJSON @ bundle-9671b40e053a06666c68.js:31
error @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249
(anonymous) @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
r @ bundle-9671b40e053a06666c68.js:19
c @ bundle-9671b40e053a06666c68.js:29
fireWith @ bundle-9671b40e053a06666c68.js:29
n @ bundle-9671b40e053a06666c68.js:31
t @ bundle-9671b40e053a06666c68.js:31
bundle-9671b40e053a06666c68.js:31 PUT 
https://aaaa.aaaa.caaa.com/settings/email_reply_address 403 (Forbidden)
send @ bundle-9671b40e053a06666c68.js:31
ajax @ bundle-9671b40e053a06666c68.js:31
(anonymous) @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
save @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
e.saveWithUrlHook @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:364
submit @ 
application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323
r @ bundle-9671b40e053a06666c68.js:19
dispatch @ bundle-9671b40e053a06666c68.js:30
v.handle @ bundle-9671b40e053a06666c68.js:29
settings:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.le.parseJSON (bundle-9671b40e053a06666c68.js:31)
    at HTMLSpanElement.error 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:249)
    at t.<anonymous> 
(application-b2577d2c9b8a4aaa635f3281e3856ed513f80d8795cdcbc89ed0896c2ef1be8e.js:323)
    at Object.r (bundle-9671b40e053a06666c68.js:19)
    at c (bundle-9671b40e053a06666c68.js:29)
    at Object.fireWith [as rejectWith] (bundle-9671b40e053a06666c68.js:29)
    at n (bundle-9671b40e053a06666c68.js:31)
    at XMLHttpRequest.t (bundle-9671b40e053a06666c68.js:31)

Settings.yaml file:

                                                                            
                                                                            
                             
:unattended: true                                                           
                
:login: true                                                               
                 
:require_ssl: true                                                         
                 
:locations_enabled: false                                                   
                
:organizations_enabled: false                                               
                
:puppetrun: false                                                           
                
:puppetssldir: /etc/puppetlabs/puppet/ssl                                   
                
                                                                            
                
# The following values are used for providing default settings during db 
migrate            
:oauth_active: true                                                         
                
:oauth_map_users: false                                                     
                
:oauth_consumer_key: AXtDGzUVaAircTfWRpFdTyoN22grGdEn                       
                
:oauth_consumer_secret: kN7wW7NADWSBRbgnaH55EhHcL476Rbj5                   
                 
                                                                            
                
# Websockets                                                               
                 
:websockets_encrypt: on                                                     
                


Seems that PUT doesn't work, I've check to GET the settings is working.

Any idea how to solve this?

Best regards,
Pawel

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to