This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 428373 - Strings Xtrnlizr silently fails to generate messages file when run on single file
Summary: Strings Xtrnlizr silently fails to generate messages file when run on single ...
Status: RESOLVED WONTFIX
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Client (show other bugs)
Version: 5.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-17 14:58 EST by Adrian Aichner CLA
Modified: 2015-05-05 16:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Aichner CLA 2014-02-17 14:58:34 EST
The file path is taken to be a directory.

Failure to find that Messages directory shows up in the JS Console but is not passed on to the unsuspecting user.

The original strings in the source file are lost.

See
Bug 422791 - Strings Xtrnlizr causes loss of letter case information
They were replaced by shorter message keys according to
Bug 408259 - NLS externalizer tool should generate shorter message keys 

Messages directory:
javascript/GoogleChromeSnippets/find_regexp.js/nls/

JS Console:

{args: Object, response: "{"Severity":"Error","Message":"File not found: /adrian-OrionContent/javascript/GoogleChromeSnippets/find_regexp.js/nls","HttpCode":404,"BundleId":"org.eclipse.orion.server.core","Code":0}", responseText: "{"Severity":"Error","Message":"File not found: /adrian-OrionContent/javascript/GoogleChromeSnippets/find_regexp.js/nls","HttpCode":404,"BundleId":"org.eclipse.orion.server.core","Code":0}", status: 404, url: "/file/adrian-OrionContent/javascript/GoogleChromeSnippets/find_regexp.js/nls", xhr: Object} strExternalizerModel.js:273
Comment 1 Adrian Aichner CLA 2014-02-17 15:52:14 EST
Also fails silently when Messages directory is set manually for the single file case.

Looks like an extra / is causing a path error:

{args: Object, response: "{"Severity":"Error","Message":"Forbidden: /adrian-OrionContent/javascript/GoogleChromeSnippets/nls//
Comment 2 John Arthorne CLA 2015-05-05 16:21:40 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html