Skip to Main Content

ORDS, SODA & JSON in the Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bug: Registering an application for 3rd-party-authorization (oAuth2)

j.gaugerFeb 1 2015 — edited Feb 11 2015

Hello Dev Team,

i just was working with the "Creating an Image Gallery"-example from the "Oracle REST Data Services" documentation http://www.oracle.com/technetwork/developer-tools/rest-data-services/documentation/listener-dev-guide-1979546.html#example_creating_an_image_gallery and tried to register an application for 3rd-party-authorization following chapter "Registering the 3rd party application".

I called the register application with URI /ui/oauth2/clients/ as described. Here the problem started. The page loaded without any styles and scripts! So, the registering process could not be completed due to missing scripts. A quick look with the developer tools of the browser revealed broken links to static content of the register application. The page tried to load static content from /js und /css subdirectories but could not find any.

After trying different things i finally stepped down the directory structure below the <TOMCAT_HOME>/webapps/ords-root and found a file called static.jar in WEB-INF/lib. A listing of the content of the jar file showed the problem. Inside the jar-file there is a directory structure like this: www/<lang_code>. And here is the source of the problem: The subdirectories for js and css are only available for lang code "en", not for any other language! But my browser is running in german language environment!

The workaround was to change the language of my browser to English and the application page now loaded as expected. But it would be very helpful if you could fix this problem in a future release.

Here some details of my system environment:

ORDS v2.0.10 running on Apache Tomcat on Linux

Tested with Google Chrome in a german environment

Regards,

Jens

Comments

807589
Use response.getOutputStream() and flush the string there.
796440
Don't crosspost. It wastes people's time when they repeat each others' answers.

[http://forums.sun.com/thread.jspa?threadID=5338772&tstart=0]
[http://forums.sun.com/thread.jspa?threadID=5338771&tstart=0]
796440
ansat27 wrote:
Use response.getOutputStream() and flush the string there.
If flushing is the issue, then just flush the Writer. That propagates through to the underlying stream(s).
darrylburke
Please don't cross post. As your thread in New to Java has the largest number of replies, please continue in that thread.
[http://forums.sun.com/thread.jspa?threadID=5338772]

I'm locking this thread and the one you posted in Java Servlet.

db
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 11 2015
Added on Feb 1 2015
4 comments
1,283 views