Creating directory for anonymous unix applauncher fails.
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1318
Reported by David Norlin, Roxen norlin@roxen.com
After selecting the Unix AppLauncher anonymous editor profile in a server from 2.231 distro, trying to edit a file i got a backtrace, saying that sitebuilder failed (after 4711 attempts) in trying to create a unique subdirectory name in my applauncher directory. However, there were only 76 subdirectories there already, so at the max. 77 attempts should be needed.
The next try, without restarting the server, it worked though... and I have not been able to reproduce the bug.
======================= BACKTRACE: ============================= Roxen version: Roxen/2.1.221 Pike version: Pike v7.0 release 304 Requested URL: /edit/!!sitemap.xml!!files!N!ct!/!!984564565/wizards/?action=edit_file.pike
Error: Failed to create anonymous edit area in
/home/norlin/applauncher/wTPBvHVPljN3aODKATTeSpjEXfzsr0Qh5CYluOH6fs: Given
up trying to create a unique directory after 4711 tries.
modules/sitebuilder/pike-modules/Sitebuilder.pmod/VCFile.pike (version
1.185):3390: get_anonymous_editarea(RequestID(),0,0)
modules/sitebuilder/pike-modules/Sitebuilder.pmod/Site.pike (version
1.185):1383: get_editor_for("UNIX
AppLauncher",VCFile(E/E:4::/sitemap.xml),RequestID())
base_server/wizard.pike (version 1.126):772:
wizard_for(RequestID(),"/edit/!!/!!files!N!ct!!!984564567/")
base_server/wizard.pike (version 1.126):906:
wizard_menu(RequestID(),"/home/norlin/sb2"+[44]+"/files//wizards/","/edit/!!/!!files!N!ct!!!984564567/")
modules/sitebuilder/modules/manager/content_editor.pike (version
1.185):467:
show(RequestID(),"wizards/",({modules/sitebuilder/modules/manager/content_editor.pike.Tab(),modules/sitebuilder/modules/manager/content_editor.pike.Tab(),modules/sitebuilder/modules/manager/content_editor.pike.Tab(),modules/sitebuilder/modules/manager/content_editor.pike.Tab(),modules/sitebuilder/modules/manager/content_editor.pike.Tab()}),mapping[2],RoxenModule(Plattform/content_editor#0))
modules/sitebuilder/modules/manager/content_editor.pike (version
1.185):1380:
find_file("!!sitemap.xml!!f"+[15]+"4564565/wizards/",RequestID())
base_server/configuration.pike (version 1.386):1155:
low_get_file(RequestID(),0)
base_server/configuration.pike (version 1.386):1345:
get_file(RequestID(),0,0)
base_server/configuration.pike (version 1.386):1320:
handle_request(RequestID())
protocols/http.pike (version 1.286):1963: handle_request()
base_server/roxen.pike (version 1.571):481: handler_thread(1)
Request data:
GET
/edit/!!sitemap.xml!!files!N!ct!/!!984564565/wizards/?action=edit_file.pike
HTTP/1.0
Referer: http://localhost:12345/edit/!!!!files!N!!!!984564383/
Connection: Keep-Alive
User-Agent: Mozilla/4.75 [en] (X11; U; SunOS 5.8 i86pc; Nav)
Host: localhost:12345
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Authorization: ################ (censored)