Closed GoogleCodeExporter closed 9 years ago
Original comment by alex.obj...@gmail.com
on 10 Aug 2012 at 1:35
Managed to reproduce it.
Apparently the comment from line #40 is causing the regex to fail.
As a temporary solution, you can remove it from the css.
I'll try to fix the problem as soon as possible and will provide you the patch.
Original comment by alex.obj...@gmail.com
on 10 Aug 2012 at 1:51
Original comment by alex.obj...@gmail.com
on 10 Aug 2012 at 1:51
Fixed in branch 1.4.x. The regex was changed from:
cssImportFromComments=(?:/\*(?:[^*]|(?:\*+[^*/]))*\*+/)|(?://.*)
to
cssImportFromComments=(?:/\*(?:[^*]|(?:\*+[^*/]))*+\*+/)|(?://.*)
The solution is tu use possessive quantifier (*+) instead of lazy one (*?) to
avoid infinite recursion.
Until the 1.4.9 release is available, you can create a custom implementation of
CssImportPreProcessor which uses the updated regex.
Original comment by alex.obj...@gmail.com
on 10 Aug 2012 at 2:37
This is the exactly the line which was causing the StackOverflowException:
http://jqueryui.com/themeroller/?ctl=themeroller&ffDefault=Verdana,Arial,sans-se
rif&fwDefault=bold&fsDefault=1.0em&cornerRadius=4px&bgColorHeader=909090&bgTextu
reHeader=01_flat.png&bgImgOpacityHeader=75&borderColorHeader=909090&fcHeader=000
000&iconColorHeader=5c5c5c&bgColorContent=bdbdbd&bgTextureContent=03_highlight_s
oft.png&bgImgOpacityContent=50&borderColorContent=e4e4e4&fcContent=000000&iconCo
lorContent=5c5c5c&bgColorDefault=c3c3c3&bgTextureDefault=03_highlight_soft.png&b
gImgOpacityDefault=100&borderColorDefault=999999&fcDefault=000000&iconColorDefau
lt=5c5c5c&bgColorHover=3468a2&bgTextureHover=03_highlight_soft.png&bgImgOpacityH
over=30&borderColorHover=3468a2&fcHover=ffffff&iconColorHover=5c5c5c&bgColorActi
ve=3468a2&bgTextureActive=03_highlight_soft.png&bgImgOpacityActive=30&borderColo
rActive=3468a2&fcActive=ffffff&iconColorActive=5c5c5c&bgColorHighlight=b0d9f7&bg
TextureHighlight=03_highlight_soft.png&bgImgOpacityError=30&borderColorError=cd0
a0a&fcError=ffffff&iconColorError=ffcc00&bgColorOverlay=aaaaaa&bgTextureOverlay=
01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextu
reShadow=01_flat.png
It is very hard to identify the exact pattern which triggers the SO...
Original comment by alex.obj...@gmail.com
on 10 Aug 2012 at 2:40
Thanks for fixing it so quickly Alex.
As this comment is generated by themeroller I suppose others who use jquery-ui
will hit it, but removing the comment should be easy workaround until 1.4.9.
Original comment by lystoc...@gmail.com
on 10 Aug 2012 at 3:20
The simplest way to not get this exception is to create a custom processor
which uses the patched regex. I can provide more details if needed.
Original comment by alex.obj...@gmail.com
on 10 Aug 2012 at 3:24
Original comment by alex.obj...@gmail.com
on 12 Aug 2012 at 6:55
Original issue reported on code.google.com by
lystoc...@gmail.com
on 10 Aug 2012 at 1:26Attachments: