Oraclerowid returns invalid rowid in parameter passing through the url.

Source: Internet
Author: User

Oraclerowid returns invalid rowid in parameter passing through the url.

On a page in the business system, the rowid is invalid when you click the link. When I use two SQL statements to find the problem, I find that it is not an SQL problem, but since rowid is invalid, it must be a rowid problem. After careful research, we found that there are special characters in rowid. Learn about rowid in oracle in this blog. It is found that rowid after oracle 8i is composed of A-Z, a-z, +, \, And the rowid I found is good with the '+' character, the '+' character is automatically converted to a space during parameter passing through the url. As a result, the plus sign in the uploaded rowid is converted to a space, which leads to this problem. So how can we solve this problem? Are there two solutions available? 1. the rowid parameter in the url is encoded using the encode function. java or JavaScript encoding functions are acceptable. Do not decode the parameter when it is uploaded to the background, because the browser automatically decodes parameters once. If decode is used again, this problem cannot be solved.

2. In the background, replace all the spaces in the rowid parameter with +, so that the rowid is the same once and once again.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.