On Monday, December 21, 2015 at 8:59:42 PM UTC-8, RjOllos wrote:
>
>
>
> On Monday, December 21, 2015 at 8:51:59 PM UTC-8, Ahmed M. wrote:
>>
>> *see my comments below*
>>
>> On Monday, December 21, 2015 at 9:27:22 PM UTC-5, RjOllos wrote:
>>>
>>>
>>>
>>> On Monday, December 21, 2015 at 5:56:19 PM UTC-8, Ahmed M. wrote:
>>>>
>>>> Here is something I tried and I can't find an explanation for. I 
>>>> downloaded [15128] in stead of [15109] and it worked!
>>>>
>>>
>>> That's strange, there should be no difference in behavior  between those 
>>> two versions. 
>>>
>> *That's what I thought! I did a diff and there is no major differences 
>> that I can find.  *
>>
>>>  
>>>
>>>> I am going to do a diff and see what are the differences. I just 
>>>> thought I 'd update you.
>>>> Also, I added the 'os.path.normpath' to 
>>>> {{{
>>>>  if env_path !=  os.path.normpath(self.env.path):
>>>> }}}
>>>> but it didn't help.
>>>>
>>>> Any suggestions where to look? 
>>>>
>>>
>>> You could log the env_path values to see if we can spot an issue:
>>> self.log.debug("TicketMoverPlugin: env_path = %s, self.env.path = %s", 
>>> env_path, self.env.path)
>>>
>> *I added the debugging message and at first glance I couldn't see any 
>> difference. I gave it a closer look and discovered that the comparison 
>> yields: env_path = C:\trac\swtrac, self.env.path = c:\trac\swtrac, the 
>> comparison was case sensitive. the first one has an upper case C while the 
>> other one has a lowers case c. updated my wsgi file and used lower case in 
>> all of my references and it worked.*
>> *This was a good learning exercise for me. Thank you so much!*
>>
>
> Good find! I'll modify the code to call os.path.normcase on both sides of 
> the operator.
> https://docs.python.org/2/library/os.path.html#os.path.normcase
>
> - Ryan
>

Fixed in [15129]
https://trac-hacks.org/changeset/15129
 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
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/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to