Comments (9)
I was able to trace down the error to the fact that the media uploader uses flash, which does not support basic http auth. When I temporarily disabled the basic auth, I was able to upload a file to the dev server in the test directory without issues.
from fxoss.
Ah shit!
from fxoss.
Now that I am done swearing.
What are our options here?
from fxoss.
- disable basic auth in nginx and only use django authentication for the site.
- disable the flash uploader and upload the files using another method.
from fxoss.
Removed basic auth config from nginx on dev and prod environments after pushing latest master which includes the login_required homepage.
Performed the following from the python shell on dev:
Page.objects.update(login_required=True)
Prod does not have any Page objects yet.
from fxoss.
I was able to resolve this locally (running Nginx in front runserver) by disabling Basic Auth for only /admin/media-library/
. This is part of the admin so it still requires the user is authenticated as a staff member. Here is the relevant part of the server
block:
upstream fxoss {
server 127.0.0.1:8000;
}
server {
...
auth_basic "Restricted";
auth_basic_user_file /home/mlavin/Projects/fxoss/users;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Protocol $scheme;
proxy_pass http://fxoss;
location ~* /admin/media-library/ {
auth_basic off;
proxy_pass http://fxoss;
}
}
...
}
from fxoss.
There were some comments that Uploadify works with Basic Auth in Chrome but I couldn't reproduce it with Chromium 32 on Ubuntu 12.04.
from fxoss.
This solve will allow for full auth/unauth QA on staging; great job! 🍬
from fxoss.
This has been resolved on dev and prod using a version of this change.
from fxoss.
Related Issues (20)
- Clear Notes Field on Content Copy
- Allow Localized Sites To Have Their Front End Enabled Or Not HOT 1
- DL Agreement Not Prompting With CN PDF HOT 1
- Chinese Characters Appearing in US Profile Screen HOT 3
- Configure ROSETTA if/when new locales are added.
- Media Library Has Vanished HOT 2
- Meta Data And Notes No Longer Editable HOT 3
- Rosetta Display Wonky HOT 2
- Error Page After Agreeing To Click Through HOT 3
- Add "Site" To Column Headings Under Redirect HOT 2
- Duplicate Sites Appearing In Admin HOT 7
- View On Site Links 404, Link to https://zh-cn.mobilepartners.mozilla.org HOT 2
- Locale Detection Based On Browser Language No Longer Working HOT 2
- Sandstone footer components need to be marked for translation.
- Explicitly add Mezzanine Pages context processor HOT 1
- Admin Left Nav Disapeared HOT 5
- Signed Prototypes In Profile Only Link To US PDF HOT 5
- docker: running apt-get update by itself prevents updating apt during rebuilds HOT 2
- missing beautifulsoup from pip requirements HOT 1
- CODE_OF_CONDUCT.md file missing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fxoss.