dkuk / under_construction

Plugin for Redmine which disables all pages except login/logout for non-administrators while thechnical operations runs.
5 stars 3 forks source link

browsers restricions not work #15

Closed fengyedou closed 9 years ago

fengyedou commented 9 years ago

[Issue 1]

In plugin settings, Enable browsers restricions, and I set the disable rule about 2 browsers: 1) ie < 9 2) firefox < 2.7 That means firefox = 2.7 or > 2.7, ie = 9 or >9 will be allowed to access, right?

for the setting doen't have >=, so I am wondering about this question.

  1. But when I use sogou browser, it also blocked to see redmine,

Then I add the rule: other < 4, other means other browser, but still block sogou browser..

I have checked the log, I really open redmine in sogou browser, but plug-in regarded it as ie..


 Time: 2014-12-23 09:21:07 +0800
 User: xxx  (user_id=1)  was try to open RM from ip=xx
 Browser: Internet Explorer v.7

```
Rendered plugins/under_construction/app/views/uc_browser_restrictions/unsupported_browser.html.erb (20.0ms)
Filter chain halted as :check_browser_restrictions rendered or redirected
Completed 200 OK in 76ms (Views: 20.0ms | ActiveRecord: 1.0ms)

Another test scene is

2. I set disable rule is internet explorer <9, and my internet explorer is 9.0x, but still block to open redmine. I set disable rule is ie<8, block again, when I set ie < 7, then it is ok for access. I think ie rule is not really working.

Thanks much.
```
fengyedou commented 9 years ago

[Issue 2]

When installed the plug-in, there are 2 items on admin page

Under Construction Browsers restricitons


If I click to Browsers restricitons, there shows a page "https://redmineserver ip/settings/plugin/under_construction" with

Not Found

The requested URL /settings/plugin/under_construction was not found on this server.

I donot find any logs.

I think it is also the url is wrong, if I put this url :https://redmineserver ip/redmine/settings/plugin/under_construction, it will jump to plug-in settings page.


And about Issue 2, I am wondering why there is under construnction and browsers restrictions menu on admin plage, I think they can all be included in plugin-settings page, or remove browsers restrictions only keep under constructions, for the plug-in settings has sets the browser restrictions already.

But in my opinion, it is better to put under construnction and browswer restrictions setting both in plugin settings(https://redmineserverip/redmine/settings/plugin/under_construction), no need to put on admin plage.

SkiF91 commented 9 years ago

Issue 1 - Base of the sogou browser is IE engine. About IE 9. In browser, hit F12 and set Browser Mode to IE9. Its about IE9 emulates another version of browser. If browser mode is IE9 then reset it and set IE9 again. its bug of IE9 You can check version of browser in application log (log dir).

Issue 2 - check setting of your server url, its your second bug where you need to write https://redmineserver/redmine/..... instead https://redmineserver/......

Any logs of application you can find in log folder of your application root dir.

fengyedou commented 9 years ago

Issue1-I got it, and set IE9 again then the restriction is right.

Issue2-I just make redmine use default setting, I donot change any configuration file about redmine url, and I think the default setting is already: https://redmineserver ip/redmine/ for redmine, I checked this file---httpd-prefix, can you tell me how to let the plug-in to redirect to the correct url like https://redmineserver ip/redmine/settings/plugin/under_construction


Alias /redmine/ "D:\BitNami\redmine-2.3.2-0/apps/redmine/htdocs/public/" Alias /redmine "D:\BitNami\redmine-2.3.2-0/apps/redmine/htdocs/public"

ProxyPass /redmine balancer://redminecluster ProxyPassReverse /redmine balancer://redminecluster

<Proxy balancer://redminecluster> RequestHeader set X_FORWARDED_PROTO 'https' BalancerMember http://127.0.0.1:3001/redmine

BalancerMember http://127.0.0.1:3002/redmine

Include "D:\BitNami\redmine-2.3.2-0/apps/redmine/conf/httpd-app.conf"

fengyedou commented 9 years ago

Thanks, I close this issue.