Custom Query (1173 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (73 - 75 of 1173)

Ticket Owner Reporter Resolution Summary
#981 tawhuac fixed Unhandled Exception when using LDAP plugin
Description

We are using the LDAP plugin for authentication. However, when we enable LDAP, after entering username and password, the site returns with

== Unhandled Exception ==
 

An unhandled exception was thrown by the application.

Pretty ugly...Proper error management and a nice error message at least would help because now we are stuck because we don't know if the config is wrong or there is a problem with mediagoblin.

Here's the config:

[plugins]
[[mediagoblin.plugins.geolocation]]
#[[mediagoblin.plugins.basic_auth]]
[[mediagoblin.media_types.image]]
[[mediagoblin.plugins.ldap]]
[[[server1]]]
LDAP_SERVER_URI = 'ldap://10.10.10.7:389'
LDAP_BIND_DN = 'cn=admin,dc=<HIDDEN>,dc=cc'
LDAP_BIND_PW = '<HIDDEN>'
LDAP_USER_DN_TEMPLATE = 'cn={username},ou=Users,dc=<HIDDEN>,dc=cc'
EMAIL_SEARCH_FIELD = 'mail'

The log file only prints:

2014-09-28 19:37:01,106 INFO    [mediagoblin.plugins.ldap.tools] Connecting to ldap://10.10.10.7:389.
2014-09-28 19:37:01,106 INFO    [mediagoblin.plugins.ldap.tools] Unbinding ldap://10.10.10.7:389.

So it seems it DOES connect to LDAP but for some reason it fails.

Using mediagoblin 0.7.1

#982 Jessica Tallon fixed Database migrations no longer work
Description

Since the python 3 merge, database migrations no longer work. To produce the error you should run ./devtools/make_example_database.sh on the latest master (as of writing this it's 1a2982d) to produce a un-migrated database. Then do ./bin/gmg dbupdate you will find an error will occur:

-> Updating main mediagoblin tables:
   + Running migration 19, "drop_MediaEntry_collected"... Traceback (most recent call last):
  File "./bin/gmg", line 9, in <module>
    load_entry_point('mediagoblin==0.7.2.dev', 'console_scripts', 'gmg')()
  File "/Users/jessica/Documents/Workspace/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 130, in main_cli
    args.func(args)
  File "/Users/jessica/Documents/Workspace/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 160, in dbupdate
    run_dbupdate(app_config, global_config)
  File "/Users/jessica/Documents/Workspace/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 128, in run_dbupdate
    run_all_migrations(db, app_config, global_config)
  File "/Users/jessica/Documents/Workspace/mediagoblin/mediagoblin/gmg_commands/dbupdate.py", line 155, in run_all_migrations
    migration_manager.init_or_migrate()
  File "/Users/jessica/Documents/Workspace/mediagoblin/mediagoblin/db/migration_tools.py", line 286, in init_or_migrate
    migration_func(self.session)
  File "/Users/jessica/Documents/Workspace/mediagoblin/mediagoblin/db/migrations.py", line 724, in drop_MediaEntry_collected
    media_collected.drop()
  File "build/bdist.macosx-10.9-x86_64/egg/sqlalchemy/sql/expression.py", line 2855, in __getattr__
AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'drop'

The version of SQLAlchemy that I'm using is: 0.8.7

#1034 Matt Molyneaux fixed "addmedia" command doesn't handle UTF8 titles/descriptions
Description

When adding media via the commandline, UTF8 characters in either --title or --description cause a UnicodeDecodeError:

(mediagoblin)[gmg@dichromate mediagoblin]$ gmg addmedia moggers87 doge.png --title "test ß"
Traceback (most recent call last):
  File "/home/gmg/mediagoblin/bin/gmg", line 9, in <module>
    load_entry_point('mediagoblin==0.7.0', 'console_scripts', 'gmg')()
  File "/home/gmg/mediagoblin/mediagoblin/gmg_commands/__init__.py", line 124, in main_cli
    args.func(args)
  File "/home/gmg/mediagoblin/mediagoblin/gmg_commands/addmedia.py", line 95, in addmedia
    title=maybe_unicodeify(args.title),
  File "/home/gmg/mediagoblin/mediagoblin/gmg_commands/addmedia.py", line 88, in maybe_unicodeify
    return unicode(some_string)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128)

The cause of this error is in the maybe_unicodify method here. Python 2 defaults to decoding strings to Unicode as ASCII - simply adding "utf8" as the second argument will solve this issue.

Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.