[Trac] htacces / Authentication information not available

2010-02-19 Thread Wouter
Hi Guys,

I switched to trac two weeks ago and have been enjoying it alot!
Unfortunatly i ran into a problem and i can't seem to find any info on
it. If i log in i get the error message: Authentication information
not available. I get this message after i loged in. If i use a
nonsense login name it is redirecting me back to the login so i guess
part of the login works as it recognizing my login credentials. The
guys over at my hosting (dreamhost) told me to fix it by adding this
to the htacess file:

AuthType Basic
AuthName Trac
AuthUserFile /path/to/my/trac.passwd
Require valid-user

however, it seems there are still some things not completly right.
First of all the logout function doesn't seem to work. Second, and
more important, when i use a rss reader to read the feed it asks for
my name and password but still wont retrive the feed.

Anyone tips on what i'm doing wrong?

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Trac detected an internal error when displaying Timeline

2010-02-19 Thread Eric De Visme

Hi all,


 


I've installed TRAC and SVN.


It worked well since I updated data in the TRAC SQLite database in tickets.


Now, all features are running well except Timeline !


Trac encounters the following error.


I already searched in the TRAC ticket database and I found nothing about this 
issue.


 


Oops...


Trac detected an internal error:

TypeError: coercing to Unicode: need string or buffer, NoneType found

This is probably a local installation issue.


Found a bug in Trac?


If you think this should work and you can reproduce the problem, you should 
consider reporting this to the Trac team.

Before you do that, though, please first try searching 
http://trac.edgewall.org/search?ticket=yesnoquickjump=1q=TypeError%3A+coercing+to+Unicode%3A+need+string+or+buffer%2C+NoneType+found
  for similar issues, as it is quite likely that this problem has been reported 
before. For questions about installation and configuration of Trac, please try 
the mailing list http://trac.edgewall.org/wiki/MailingList  instead of filing 
a ticket.

Otherwise, please  a new ticket at the Trac project site, where you can 
describe the problem and explain how to reproduce it.


Python Traceback


Most recent call last:

· File 
C:\Python25\lib\site-packages\trac-0.11.7stable_r8997-py2.5.egg\trac\timeline\templates\timeline.html,
 line 41, in Expression uevent.render('title', context) 
http://trac.geomapgis.com/TRAC/timeline#frame0 

· File 
c:\python25\lib\site-packages\Trac-0.11.7stable_r8997-py2.5.egg\trac\timeline\web_ui.py,
 line 294, in lambda http://trac.geomapgis.com/TRAC/timeline#frame1 

· File 
c:\python25\lib\site-packages\Trac-0.11.7stable_r8997-py2.5.egg\trac\ticket\web_ui.py,
 line 343, in render_timeline_event 
http://trac.geomapgis.com/TRAC/timeline#frame2 

· File 
c:\python25\lib\site-packages\Trac-0.11.7stable_r8997-py2.5.egg\trac\ticket\api.py,
 line 447, in format_summary http://trac.geomapgis.com/TRAC/timeline#frame3 


System Information:


User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.89 Safari/532.5

Trac:

0.11.7stable-r8997

Python:

2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]

setuptools:

0.6c11

SQLite:

3.3.4

pysqlite:

2.3.2

Genshi:

0.5.1

Subversion:

1.5.2 (r32768)

jQuery:

1.2.6

 


I also changed the TRAC Workflow as follows in trac.ini (in French)


[ticket-workflow]

assigner = new, non reproduit - assigné

assigner.default = 5

assigner.operations = set_owner

assigner.permissions = TICKET_MODIFY

laisser = * - *

laisser.default = 9

laisser.operations = leave_status

reassigner = assigné - assigné

reassigner.default = 2

reassigner.operations = set_owner

reassigner.permissions = TICKET_MODIFY

resoudre = assigné,non reproduit - closed

resoudre.default = 5

resoudre.operations = set_resolution

resoudre.permissions = TICKET_MODIFY

rouvrir = closed - rouvrir

rouvrir.operations = del_resolution


rouvrir.permissions = TICKET_CREATE


 

The configuration of the timeline in trac.ini is as follows

[timeline]

abbreviated_messages = True

changeset_collapse_events = false

changeset_long_messages = false

changeset_show_files = 0

default_daysback = 30

max_daysback = 90

newticket_formatter = oneliner

ticket_show_details = false

 

NOTE: I have many custom fields (see configuration below)

[ticket-custom]

builddate = text

builddate.label = Date du build

buildnum = text

buildnum.label = Numéro de Build

database = select

database.label = Base de données

database.options = Indifférent|Oracle|Access|PostGis|SqlServer|MySql|Autre

database.value = Indifférent

metier = select

metier.label = Métier

metier.options = Noyau|Linéaire|Réseau|Urba|Relation|Telco|Interventions|Histo 
Simulation|Facilities Management|GeoVoirie|Gis Pipeline

metier.value = Noyau

mode = select

mode.label = Mode histo/simul

mode.options = Standard|Projet On|Projet Off|Projet et 
Courant|Historique|Historique Only|Tous

mode.value = Standard

objecttype = select

objecttype.label = Type d'objet

objecttype.options = Indifférent|ORACLE Spatial|Geomap Spatial|Sql|Point 
Sql|Texte Sql|Graphique|Géocodé ligne|Géocodé point|FDO DB|FDO MySql|FDO 
ODBC|FDO SDF3|FDO SHP

objecttype.value = Indifférent

projet = text

projet.label = Nom du projet

securite = select

securite.label = Sécurité

securite.options = Indifférent|DAT|Base de données|LDAP|LDAP2|LDAPDAT|Non 
sécurisé

securite.value = Indifférent

typeappli = select

typeappli.label = Type d'application

typeappli.options = Oracle Spatial|GEOMAP Spatial|Sql|Autocad Map 
DWG|MapGuide|MapInfo|Tous

typeappli.value = Oracle Spatial

 


Could you help me, please ? Could you give me some ways to find the issue ?


Thanks a lot

 

Regards

 

Eric de VISME
GEOMAP Systems



 

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to 

RE: [Trac] Trac detected an internal error when displaying Timeline

2010-02-19 Thread Eric De Visme
Hi all, 

 

Finally, I found that some tickets had no summaries.

Adding a summary on these tickets solved the problem.

 

Regards

 

Eric de VISME
GEOMAP Systems



 

De : trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] De la 
part de Eric De Visme
Envoyé : vendredi 19 février 2010 10:11
À : trac-users@googlegroups.com
Objet : [Trac] Trac detected an internal error when displaying Timeline
Importance : Haute

 


Hi all,


 


I've installed TRAC and SVN.


It worked well since I updated data in the TRAC SQLite database in tickets.


Now, all features are running well except Timeline !


Trac encounters the following error.


I already searched in the TRAC ticket database and I found nothing about this 
issue.


 


Oops...


Trac detected an internal error:

TypeError: coercing to Unicode: need string or buffer, NoneType found

This is probably a local installation issue.


Found a bug in Trac?


If you think this should work and you can reproduce the problem, you should 
consider reporting this to the Trac team.

Before you do that, though, please first try searching 
http://trac.edgewall.org/search?ticket=yesnoquickjump=1q=TypeError%3A+coercing+to+Unicode%3A+need+string+or+buffer%2C+NoneType+found
  for similar issues, as it is quite likely that this problem has been reported 
before. For questions about installation and configuration of Trac, please try 
the mailing list http://trac.edgewall.org/wiki/MailingList  instead of filing 
a ticket.

Otherwise, please  a new ticket at the Trac project site, where you can 
describe the problem and explain how to reproduce it.


Python Traceback


Most recent call last:

· File 
C:\Python25\lib\site-packages\trac-0.11.7stable_r8997-py2.5.egg\trac\timeline\templates\timeline.html,
 line 41, in Expression uevent.render('title', context) 
http://trac.geomapgis.com/TRAC/timeline#frame0 

· File 
c:\python25\lib\site-packages\Trac-0.11.7stable_r8997-py2.5.egg\trac\timeline\web_ui.py,
 line 294, in lambda http://trac.geomapgis.com/TRAC/timeline#frame1 

· File 
c:\python25\lib\site-packages\Trac-0.11.7stable_r8997-py2.5.egg\trac\ticket\web_ui.py,
 line 343, in render_timeline_event 
http://trac.geomapgis.com/TRAC/timeline#frame2 

· File 
c:\python25\lib\site-packages\Trac-0.11.7stable_r8997-py2.5.egg\trac\ticket\api.py,
 line 447, in format_summary http://trac.geomapgis.com/TRAC/timeline#frame3 


System Information:


User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.5 
(KHTML, like Gecko) Chrome/4.0.249.89 Safari/532.5

Trac:

0.11.7stable-r8997

Python:

2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]

setuptools:

0.6c11

SQLite:

3.3.4

pysqlite:

2.3.2

Genshi:

0.5.1

Subversion:

1.5.2 (r32768)

jQuery:

1.2.6

 


I also changed the TRAC Workflow as follows in trac.ini (in French)


[ticket-workflow]

assigner = new, non reproduit - assigné

assigner.default = 5

assigner.operations = set_owner

assigner.permissions = TICKET_MODIFY

laisser = * - *

laisser.default = 9

laisser.operations = leave_status

reassigner = assigné - assigné

reassigner.default = 2

reassigner.operations = set_owner

reassigner.permissions = TICKET_MODIFY

resoudre = assigné,non reproduit - closed

resoudre.default = 5

resoudre.operations = set_resolution

resoudre.permissions = TICKET_MODIFY

rouvrir = closed - rouvrir

rouvrir.operations = del_resolution


rouvrir.permissions = TICKET_CREATE


 

The configuration of the timeline in trac.ini is as follows

[timeline]

abbreviated_messages = True

changeset_collapse_events = false

changeset_long_messages = false

changeset_show_files = 0

default_daysback = 30

max_daysback = 90

newticket_formatter = oneliner

ticket_show_details = false

 

NOTE: I have many custom fields (see configuration below)

[ticket-custom]

builddate = text

builddate.label = Date du build

buildnum = text

buildnum.label = Numéro de Build

database = select

database.label = Base de données

database.options = Indifférent|Oracle|Access|PostGis|SqlServer|MySql|Autre

database.value = Indifférent

metier = select

metier.label = Métier

metier.options = Noyau|Linéaire|Réseau|Urba|Relation|Telco|Interventions|Histo 
Simulation|Facilities Management|GeoVoirie|Gis Pipeline

metier.value = Noyau

mode = select

mode.label = Mode histo/simul

mode.options = Standard|Projet On|Projet Off|Projet et 
Courant|Historique|Historique Only|Tous

mode.value = Standard

objecttype = select

objecttype.label = Type d'objet

objecttype.options = Indifférent|ORACLE Spatial|Geomap Spatial|Sql|Point 
Sql|Texte Sql|Graphique|Géocodé ligne|Géocodé point|FDO DB|FDO MySql|FDO 
ODBC|FDO SDF3|FDO SHP

objecttype.value = Indifférent

projet = text

projet.label = Nom du projet

securite = select

securite.label = Sécurité

securite.options = Indifférent|DAT|Base de données|LDAP|LDAP2|LDAPDAT|Non 
sécurisé

securite.value = Indifférent

typeappli = select

typeappli.label = Type 

Re: [Trac] Macro for referencing values and do calculations

2010-02-19 Thread W. Martin Borgert
On 2010-02-18 16:01, Noah Kantrowitz wrote:
 Trac-hacks would be the place for this, or just post it to PyPI.

Yes, I will put it on Trac-hacks, but I'm interested in feedback
(esp. about security implications) first.

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Macro for referencing values and do calculations

2010-02-19 Thread Noah Kantrowitz
If you are calling eval() on a user-provided string you should assume  
they can run arbitrary code with the permissions of the webserver.  
This almost certainly means anyone with edit access can delete the  
Trac site, and probably do plenty of more subtly evil things. If you  
wouldn't give every one of your users root on the Trac machine, don't  
do this. If you want to make a single calculation system, PyParsing  
has one as an example.


--Noah

On Feb 19, 2010, at 5:04 AM, W. Martin Borgert wrote:


On 2010-02-18 16:01, Noah Kantrowitz wrote:

Trac-hacks would be the place for this, or just post it to PyPI.


Yes, I will put it on Trac-hacks, but I'm interested in feedback
(esp. about security implications) first.

--
You received this message because you are subscribed to the Google  
Groups Trac Users group.

To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com 
.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en 
.




--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Macro for referencing values and do calculations

2010-02-19 Thread W. Martin Borgert

Quoting Noah Kantrowitz n...@coderanger.net:
If you are calling eval() on a user-provided string you should  
assume they can run arbitrary code with the permissions of the  
webserver.


Even if I limit the available commands? I use:
eval(argument, {__builtins__: None}, CalcMacro._localdict)
_localdict contains some Python built-ins and math functions.

If you want to make a single calculation system, PyParsing has one  
as an example.


Yes, PyParsing is really nice and capable.

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Macro for referencing values and do calculations

2010-02-19 Thread Remy Blank
W. Martin Borgert wrote:
 Even if I limit the available commands? I use:
 eval(argument, {__builtins__: None}, CalcMacro._localdict)
 _localdict contains some Python built-ins and math functions.

Yes, don't do that. There's currently no sensible way to make eval()
safe (short of writing your own version). There was a kind of contest at
some point where people tried to write arbitrary programs using only a
single eval() (can't find the link ATM, but it was quite...
enlightening). And no, there doesn't seem to be a way to restrict the
available symbols. IIRC, you can always find a way to access __import__,
which gives you access to all the rest.

-- Remy



signature.asc
Description: OpenPGP digital signature


Re: [Trac] Macro for referencing values and do calculations

2010-02-19 Thread W. Martin Borgert

Quoting Remy Blank remy.bl...@pobox.com:

Yes, don't do that. There's currently no sensible way to make eval()
safe (short of writing your own version).


I see.


IIRC, you can always find a way to access __import__,
which gives you access to all the rest.


At least the naive way is blocked:


eval(__import__(), {__builtins__: None})

Traceback (most recent call last):
  File stdin, line 1, in module
  File string, line 1, in module
NameError: name '__import__' is not defined

Anyway, I will look into a PyParsing based solution.

Still, I'm more than curious to learn how to break eval(),
but this a Python issue, not a Trac one.

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.