Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.2
-
Fix Version/s: 0.2.1
-
Component/s: Project infrastructure
-
Labels:None
-
Environment:Ubuntu 6.06, Java 1.5
Description
1. Capture a system call level trace such as this during a grails app runtime instance
$ strace -f -o run.trace grails run-app # Linux system call trace, following children with -f
and then load a page that uses, e.g., <g:message> tag. It is revealed that i18n/messages.properties is stat'd but never actually opened or read. A consequence is that properties defined in the message bundle are silently unavailable to the application.
2. Proving the messages file is stat'd by the OS:
$ egrep '^[0-9]+ stat.*tmp.*i18n/messages\.properties' run.trace
12590 stat64("/home/petrovic/Projects/TeachersP/tmp/war/WEB-INF/grails-app/i18n/messages.properties",
12590 stat64("/home/petrovic/Projects/TeachersP/tmp/war/WEB-INF/grails-app/i18n/messages.properties", {st_mode=S_IFREG|0644, st_size=2167, ...}
) = 0
...
3. Proving the message file is never read by the OS, by proving it is never open'd:
$ egrep '^[0-9]+ open.*tmp.*i18n/messages\.properties' run.trace
which produces no output.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
| Field | Original Value | New Value |
|---|---|---|
| Attachment | messageSource.patch [ 21692 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 0.3 [ 12696 ] |
| Fix Version/s | 0.2.1 [ 12770 ] | |
| Fix Version/s | 0.3 [ 12696 ] |
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
| Workflow | jira [ 32589 ] | Grails [ 45411 ] |
| Workflow | Grails [ 45411 ] | Copy of Grails [ 52867 ] |
| Workflow | Copy of Grails [ 52867 ] | Grails [ 60277 ] |
| Workflow | Grails [ 60277 ] | Grails2 [ 67855 ] |
| Workflow | Grails2 [ 67855 ] | jira [ 77600 ] |
| Workflow | jira [ 77600 ] | Grails2 [ 85973 ] |
| Workflow | Grails2 [ 85973 ] | jira [ 94359 ] |
| Workflow | jira [ 94359 ] | Grails2 [ 102506 ] |