[Trac] Re: Missing attachments after upgrading

2013-11-11 Thread RjOllos
On Monday, November 11, 2013 8:16:13 AM UTC-8, Rainer Sokoll wrote:

> Hi, 
>
> recently I moved a trac instance from server A running trac 0.12 to server 
> B running trac 1.0.1. 
> For some unknown reason, not all attachments wer copied, but I did not 
> notice that. 
> After a user complained, I copied the missing files into the correct 
> directories. 
> Still, trac throws a 404: 
>
> 2013-11-11 16:50:02,615 Trac[attachment] DEBUG: Trying to open attachment 
> at 
> /svn/trac/simprogno/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip
>  
>
> 2013-11-11 16:50:02,616 Trac[main] WARNING: [10.0.23.238] HTTPNotFound: 
> 404 Trac Error (Attachment 'Vorlage_SRS.zip' not found) 
>
> $TRAC_ENV/attachments/wiki/Arbeitsergebnisse/ shows Vorlage_SRS.zip. 
>
> I think I need to re-upgrade the environment, but trac-admin simply says: 
> "Database is up to date, no upgrade necessary.“ 
>
> Any hints what I can do? 
>
> Rainer 
>


You can try directly executing the db28.py upgrade step. See discussion in 
https://groups.google.com/d/msg/trac-users/Z83wykXQe5E/lfXyPNmHBmQJ  for 
some hints.

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Trac] CamelCase with slashes

2013-11-11 Thread Christian Boos
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/11/2013 8:07 AM, Remy Blank wrote:
> Peter Suter wrote:
>> Looks like it was actually intentional:
>>> WikiPageNames now also accept names like Page/Sub (which can be
>>> seen
>> as a good thing)
> 
> Yes, I saw that. It looks to me like a justification after the
> fact, possibly because it made the solution simpler. Christian
> might know for sure.

You're right, the primary motivation was the implementation itself,
for performance reasons IIRC.

Also, at that time I had a few pages in my Wikis using that pattern
(e.g. Mercurial/this, Mercurial/that) so the new behavior didn't seem
a too bad side effect. Since then, I also find myself wiki-escaping
such constructs a lot, so I wouldn't mind changing this now (if it
weren't for backward compatibility, of course).

- -- Christian

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSgS7zAAoJENf0XkEiCfY2GnkIAJVeiiNR2Ny0Yuz73t6l+Q84
Ryic/mxS72MKQjXy0mgIUshuO94pDRGH729lNpK2KhglgvxkQGcrdZZCV5T131+6
aL2ZQRD97hOIOMsnfF6wT1z8BdYVhFvNO92mO8hnp8+hPschbZKDpIuGV7ADV4ug
js4A/M4G0Nc0cLGG5yBnBgZ1UqDPy/bK2k4XETNwhl5y5FdTBtTXKmw7XRF7dyzg
7eyVwsHbAPICHd2sb8ZCG9skojN2jqSpxB4fzFhUsKBELEaEiRZjI0bHtVynk3Xx
4HF4igtqz5AtcJ67ijSZsYh8KStioL27nrN6ub+qvTbHnYjHmYjoRw9DdmZtBdk=
=t5u6
-END PGP SIGNATURE-

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Trac] Re: Trac 1.0.1 ticket templates not found

2013-11-11 Thread Sam
No ideas at all? I really could use some help on this!

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Trac] TRAC 1.0.x compatibility against SVN 1.8.x

2013-11-11 Thread Olemis Lang
Hi !
:)

On Mon, Nov 11, 2013 at 1:39 AM, Maisie Han  wrote:

> Just a noob question. Is TRAC 1.0.x compatible against SVN 1.8.x?
> Reading this, http://trac.edgewall.org/wiki/TracUpgrade#to1.0, I think it
> still is supported, but just not by default right?
>
> And version 0.12.x will continue to work against SVN 1.7 but not SVN 1.8?
> http://trac.edgewall.org/wiki/TracSubversion#TracandSubversion1.7
>
> Appreciate the clarification. Thanks!
>
>


I recall there was a discussion about this subject in the mailing list few
(weeks | months) ago . I do not recall the details but maybe you can find
more information by searching the archives.

-- 
Regards,

Olemis - @olemislc

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Trac] Missing attachments after upgrading

2013-11-11 Thread Rainer Sokoll

Am 11.11.2013 um 18:33 schrieb Olemis Lang :

Hi,

> It seems the upgrade is partially broken ? ... anyway ... what happens after 
> copying $TRAC_ENV/attachments/wiki/Arbeitsergebnisse/Vorlage_SRS.zip to the 
> new location 
> $TRAC_ENV/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip
>  ?

Works, but…
There are dozens of files, and I really do not want to click each file, look 
into the error log, and copy the file over to the new name/location.
Is there an easy way to compute the new filename/name of the new directory?

Rainer


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: [Trac] Missing attachments after upgrading

2013-11-11 Thread Olemis Lang
On Mon, Nov 11, 2013 at 11:16 AM, Rainer Sokoll  wrote:

> Hi,
>

:)


>
> recently I moved a trac instance from server A running trac 0.12 to server
> B running trac 1.0.1.
> For some unknown reason, not all attachments wer copied, but I did not
> notice that.
> After a user complained, I copied the missing files into the correct
> directories.
> Still, trac throws a 404:
>
> 2013-11-11 16:50:02,615 Trac[attachment] DEBUG: Trying to open attachment
> at
> /svn/trac/simprogno/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip
> 2013-11-11 16:50:02,616 Trac[main] WARNING: [10.0.23.238] HTTPNotFound:
> 404 Trac Error (Attachment 'Vorlage_SRS.zip' not found)
>
> $TRAC_ENV/attachments/wiki/Arbeitsergebnisse/ shows Vorlage_SRS.zip.
>
> I think I need to re-upgrade the environment, but trac-admin simply says:
> "Database is up to date, no upgrade necessary.“
>
> Any hints what I can do?
>

It seems the upgrade is partially broken ? ... anyway ... what happens
after copying $TRAC_ENV/attachments/wiki/Arbeitsergebnisse/Vorlage_SRS.zip
to the new
location 
$TRAC_ENV/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip
?



-- 
Regards,

Olemis - @olemislc

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Trac] Missing attachments after upgrading

2013-11-11 Thread Rainer Sokoll
Hi,

recently I moved a trac instance from server A running trac 0.12 to server B 
running trac 1.0.1.
For some unknown reason, not all attachments wer copied, but I did not notice 
that.
After a user complained, I copied the missing files into the correct 
directories.
Still, trac throws a 404:

2013-11-11 16:50:02,615 Trac[attachment] DEBUG: Trying to open attachment at 
/svn/trac/simprogno/files/attachments/wiki/ded/dedda92c1b093886e0456d55cc374d47e9da45f1/b9de2d9a5a3e90e84776bfdd1d1157ea1047c208.zip
2013-11-11 16:50:02,616 Trac[main] WARNING: [10.0.23.238] HTTPNotFound: 404 
Trac Error (Attachment 'Vorlage_SRS.zip' not found)

$TRAC_ENV/attachments/wiki/Arbeitsergebnisse/ shows Vorlage_SRS.zip.

I think I need to re-upgrade the environment, but trac-admin simply says: 
"Database is up to date, no upgrade necessary.“

Any hints what I can do?

Rainer

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Trac] CamelCase with slashes

2013-11-11 Thread Clemens Feige



Clemens Feige wrote:

In my opinion it should be like this:
   "Germany/Berlin" -> shall be not be linked,


From: Peter Suter

I'm not so sure it's a good idea to change this back. Trac users since
0.12 have surely intentionally created such pages and links.



Hi Peter.

Indeed, one has to balance my proposal with backward-compatibility with 
those cases which depend on the regression.


However, I would claim that most users which actively use implicit 
CamelCase-hyperlinking always use CamelCase wiki page names. The other 
smaller group of users, which use non-CamelCase wiki page names, would 
use the explicit wiki: macro anyway.


Clemens

--
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Trac] TRAC 1.0.x compatibility against SVN 1.8.x

2013-11-11 Thread Maisie Han
Just a noob question. Is TRAC 1.0.x compatible against SVN 1.8.x? 
Reading this, http://trac.edgewall.org/wiki/TracUpgrade#to1.0, I think it 
still is supported, but just not by default right? 

And version 0.12.x will continue to work against SVN 1.7 but not SVN 1.8?
http://trac.edgewall.org/wiki/TracSubversion#TracandSubversion1.7

Appreciate the clarification. Thanks!

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Trac] Re: FineGrainedPermissions, FineGrainedPageAuthzEditorPlugin and HtGroupEditorPlugin troubles

2013-11-11 Thread RjOllos


On Sunday, November 10, 2013 4:48:37 AM UTC-8, Joost Kraaijeveld wrote:
>
> Hi, 
>
> I am having troubles configuring FineGrainedPermissions in Trac. I have 
> tried configuring it manually, using an authzpolicy.conf with he 
> following content: 
>
> [wiki:*] 
> [wiki:WikiStart*] 
> [wiki:WikiStart@*] 
> [wiki:WikiStart] 
> jkr = WIKI_VIEW 
> * = !WIKI_VIEW 
>
> I expected that jkr could see the WikiStart and nobody else. But 
> everyone can see it, it looks as if the conf file is ignored. The 
> trac.log file shows the following when I access Trac with an anonymous 
> user: 
>
> root@panoramix:/var/lib/trac/testtrac/log# tail -f trac.log | egrep 
> '\[perm\]|\[authz_policy\]' | grep WikiStart 
> 2013-11-10 13:37:05,016 Trac[authz_policy] DEBUG: Checking WIKI_VIEW on 
> wiki:WikiStart@* 
> 2013-11-10 13:37:05,025 Trac[authz_policy] DEBUG: Checking 
> ATTACHMENT_CREATE on wiki:WikiStart@*/attachment:*@* 
> 2013-11-10 13:37:05,025 Trac[authz_policy] DEBUG: Checking WIKI_MODIFY on 
> wiki:WikiStart@* 
> 2013-11-10 13:37:05,025 Trac[perm] DEBUG: No policy allowed anonymous 
> performing WIKI_MODIFY on  
> 2013-11-10 13:37:05,025 Trac[perm] DEBUG: LegacyAttachmentPolicy denies 
> anonymous performing ATTACHMENT_CREATE on  attachment'> 
> 2013-11-10 13:37:05,041 Trac[authz_policy] DEBUG: Checking WIKI_ADMIN on 
> wiki:WikiStart@* 
> 2013-11-10 13:37:05,041 Trac[perm] DEBUG: No policy allowed anonymous 
> performing WIKI_ADMIN on  
> 2013-11-10 13:37:05,063 Trac[authz_policy] DEBUG: Checking WIKI_DELETE on 
> wiki:WikiStart@* 
> 2013-11-10 13:37:05,063 Trac[perm] DEBUG: No policy allowed anonymous 
> performing WIKI_DELETE on  
> 2013-11-10 13:37:05,063 Trac[authz_policy] DEBUG: Checking WIKI_RENAME on 
> wiki:WikiStart@* 
> 2013-11-10 13:37:05,063 Trac[perm] DEBUG: No policy allowed anonymous 
> performing WIKI_RENAME on  
>

Have you followed all of the steps at?:
http://trac.edgewall.org/wiki/TracFineGrainedPermissions

You'll need to enable the plugin, add the permission policy, install the 
ConfigObj package and add the `authz_file` configuration directive to 
trac.ini.

What version of Trac are you running? There have been several improvements 
to handling error conditions in the configuration of 
TracFineGrainedPermissions on 1.0-stable, but they haven't been packages in 
a formal release yet.

 

> I also have the FineGrainedPageAuthzEditorPlugin  installed. It does not 
> not show the contents of my authzpolicy.conf . Entering the text above 
> leads to an Oops: 
>
> Trac detected an internal error: 
> TypeError: coercing to Unicode: need string or buffer, NoneType found 
>

FineGrainedPageAuthzEditorPlugin doesn't handle conditions well when 
TracFineGrainedPermissions is not properly configured. I'll take a look at 
improving it. The ideas in ticket #11172 may eventually help you:
http://trac-hacks.org/ticket/11172
 

> And my last problem is the groups file. What is the syntax of that file? 
> Is there a working example available?  

 
I don't have any experience with the groups file, but you'll probably want 
to consult the Apache documentation. I'm not certain this is the correct 
page, but it looks right to me:
http://httpd.apache.org/docs/2.2/mod/mod_authz_groupfile.html
 

> I have the HtGroupEditorPlugin installed, but if I use the following as 
> content, it refuses to read the file and gives me an error: 
>
> [groups] 
> admins = jkr 
> devs = jkr 
>
> And the error is: 
>
> Trac detected an internal error: 
> IndexError: list index out of range 
>
>
> Anyone any idea how I could sole thsi? 
>
> TIA 
>
> Joost 
>
>
>

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.