Key with a slash character

Hello,
In my tests I see that when I add a key component that contains a slash character "/", Oracle NoSQL encodes it as "%2F".
For example:
ArrayList<String> majorComponents = new ArrayList<String>();
majorComponents.add("forums.oracle.com/community");
Key myKey = Key.createKey(majorComponents);
System.out.println(myKey.toString());
this prints:
forums.oracle%2Fcommunity
I tried to URLDecode.decode the string before I add it to the majorComponents but it doesn't work.
Therefore, my question is if there is a way to have a key that contains slash characters. Please have in mind that I would prefer not to split the string into multiple components every time a slash character occurs in the string.
Thank you very much in advance,
Apostolos Giannakidis

Hi,
All Unicode characters are allowed in a key component, including slashes.  Your code to create the key is correct, and the key component does contain a slash.  The slash is escaped by the Key.toString method for two reasons: 1) to delineate key components, 2) to provide a URI syntax.  If you call Key.getMajorPath and look at the component, you'll see the un-escaped slash.  The Key.toString javadoc contains complete documentation of the string format.
--mark

Similar Messages

  • Hardware Inventory Not collecting Reg Keys with the Underscore Character

    We expanded hardware inventory to collect custom reg keys dynamically (from the child keys). While the new WMI class on the machine is able to see all the custom keys, SCCM is not collecting the ones with the underscore ('-') character in the name. Does
    anyone know if this is a limitation in SCCM?

    Added to configuration.mof
    #pragma namespace ("\\\\.\\root\\cimv2")
    #pragma deleteclass("Packages", NOFAIL)
    [dynamic, provider("RegProv"), ClassContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\PC\\Packages")]
    Class Packages
    [key] string KeyName;
    [PropertyContext("ApplicationName")] String ApplicationName;
    [PropertyContext("ApplicationVendor")] String ApplicationVendor;
    [PropertyContext("ApplicationVersion")] String ApplicationVersion;
    Added to minimof and imported into default client settings:
    #pragma namespace ("\\\\.\\root\\cimv2\\SMS")
    #pragma deleteclass("Packages_64", NOFAIL)
    [SMS_Report(TRUE),SMS_Group_Name("Packages64"),SMS_Class_ID("Packages64"),
    SMS_Context_1("__ProviderArchitecture=64|uint32"),
    SMS_Context_2("__RequiredArchitecture=true|boolean")]
    Class Packages_64 : SMS_Class_Template
    [SMS_Report(TRUE),key] string KeyName;
    [SMS_Report(TRUE)] String ApplicationName;
    [SMS_Report(TRUE)] String ApplicationVendor;
    [SMS_Report(TRUE)] String ApplicationVersion;
    Thanks

  • Applescript: How to reference to a filename with forward slash character?

    Hi,
    I have this script line:
    do shell script "lpadmin -p CIN-East-Copier -E -v lpd://192.168.51.78 -P '/Library/Printers/PPDs/Contents/Resources/LANIER MP C5501/LD655C'"
    The filename is "LANIER MP C5501/LD655C", the forward slash in the name is a character, not a folder structure.
    The script above works perfectly for drivers without the forward character.  Can anyone help me how to make it work?  I tried replacing the forward slash with URL encoded character, changing the structure to colon delimited (i.e. Macintosh HD:Library:Printers....etc), none work.
    Thanks!

    Since the / is the standard directory delimiter, it is not usually valid in a filename. It's extremely unusual to find such a character in a filename. However, all is not lost... there is a trick.
    Since the standard Mac OS paths used colon-delimited paths, and UNIX uses slash-delimited, there is a kind of hybrid solution... you can use the colon in the shell and it interprets as a slash, e.g.:
    do shell script "lpadmin -p CIN-East-Copier -E -v lpd://192.168.51.78 -P '/Library/Printers/PPDs/Contents/Resources/LANIER MP C5501:LD655C'"
    I haven't tried it, but you might need to escape (with a backslash) the colon:
    do shell script "lpadmin -p CIN-East-Copier -E -v lpd://192.168.51.78 -P '/Library/Printers/PPDs/Contents/Resources/LANIER MP C5501\\:LD655C'"

  • Problem with slash character in CONTAINS queries

    Hi there,
    i've got a problem with a CONTAINS query using Oracle Text.
    The following query works fine:
    select col1 from my_table_text where contains(text,'%02%')>0;
    When i'm trying the query
    select col1 from my_table_text where contains(text,'%02/%')>0;
    the following error occurs:
    ORA-29902: error in executing ODCIIndexStart() routine
    ORA-20000: Oracle Text error:
    DRG-50937: query too complex
    I didn't find anywhere that the slash has a special meaning (escape character or something else). This occurs only when the slash character is positioned immediately after or before the % operator. The search string '%0/2%' works.
    Oracle version: 9.2.0.1.0
    OS: Solaris 8 SPARC
    Maybe someone can help me.
    Thanks in advance,
    Chris

    Hi Chris,
    I think you want to search for all words having '02/'.
    Am I right? In that case try using '02//'
    Yes. '/' means escape character. So when it finds '/%' it tries to escape '%'.
    Hope this helps.
    Regards,
    Anupama

  • I get a circle with a slash when I hit f8, F9 or f10 to backlight keys

    My keyboard back lighting doesn't work much but I reset PMU and PRAM then suddenly it worked. Now though, about an hour later, if I hit any of the keys I get a circle with a slash as if it is turned off, illegal, or not installed. Anybody know what it means? I have the backlight checked off in the energy manager.
    I'm confused.
    Also, the lower memory slot is kaput.
    thanks,
    Connie

    I fixed it by putting the install disk in and verifying/repairing the disc and the permissions.
    The memory slot was not repaired. I understand it was a problem with some powerbooks but the repair program ended in July 2008.
    Connie

  • Folders with forward slashes in the name not appearing in Mail.app Exchange

    Has anybody else seen this? For folders with forward slashes in the name, such as "Meetings/Events", the folder shows up in Outlook Web Access and over Exchange in Entourage 2008, but not Exchange over IMAP with Mail.app in Snow Leopard. The folder shows up once I remove the forward slashes, such as "Meetings Events" or "Meetings-Events" or "Meetings and Events".
    Is this a known issue, and is there a fix besides renaming the folders?

    In Unix the forward slash is an illegal character for a filename. In general you should avoid using it as the forward slash is used in path names such as /Folder/File. Avoid using the colon as well because it's commonly used as part of a disk identifier in OS X.
    This is not any different than avoiding the backslash in Windows filenames.

  • N91 problem sending SMS with non English character...

    Hello I own a N91 4GB version. I have upgraded to version 2.20.008. I checked recently and have not found a newer version available for download.
    When composing an SMS a counter appears on the upper part of the screen, which shows how many characters remain and how many SMS(s) will be sent.
    When I use my native language, i.e. Greek, the counter starts as usual with 160 characters. When I type the first character it drops to 69 characters and then it works correctly decreasing the counter by 1. The result is that the phone sends more than 1 SMS even if there are no more than 160 characters.
    The problem does not appear if I use English characters.
    Is there a way to fix this? Do other users have the same problem?

    Hello alsanico,
    I'm from Greece too.
    I haven't seen N91's exact menu but i suppose it has similarities with my N95. They both run S60.
    Settings-
    General-
    Personalisation-
    Language-
    Writing Language-Ellinika
    If you have already made these settings then go to:
    Messaging-
    Options (left selection key)-
    Settings-
    Text Message-
    Character encoding-
    Reduced support
    Hope this helps...

  • Will only boot to a circle with a slash

    MacBook Pro will only boot to the circle with a slash symbol. I have tried all the turn on hold C, X, Option key suggestions and have tried the clearing ideas (hold cntl, commmd, p, r). Have put the system disk in to boot from that, now I cannot get the disk out.
    Any suggestions out there?

    Your computer is not recognizing your hard drive. Plug a mouse in and hold the mouse key down when booting. The disc should eject. Next, make sure the disc is real clean with no finger prints or scratches on it. Then try booting from it again (by holding the "C" key down) when booting. See if your Disk Utility sees the drive and run that. If it does not, or the unit will not boot from the install disc, then you have a serious problem--possibly logic board-related. You could also try running DiskWarrior and see if that will boot and repair the drive.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG

  • Circle with a Slash Through it and Non-Mounting Hard Drive

    Hello,
    So I have a Macbook Pro (Early 2011) and the other day it was installing some update. It turned off, so I went upstairs to plug it in but once I powered it on and logged in it just shows a circle with a slash on it. The guest user account works fine. After researching on Google, I found out that the circle with slash means its missing boot files and I should try reinstalling the os with an archive and install. It wouldn't show up as a valid partition to recover from. In disk utility, the main hard drive shows up, the Macintosh HD shows up as well but is greyed out and will not mount. I just need to copy the files off it, and then I can do a clean install of the OS.
    This is what I get when I try to repair the main hard drive from disk utility:
    Verifying and repairing partition map for “Seagate FreeAgent Media”
    Checking prerequisites
    Checking the partition list
    Checking for an EFI system partition
    Checking the EFI system partition’s size
    Checking the EFI system partition’s file system
    Checking all HFS data partition loader spaces
    Reviewing boot support loaders
    Checking Core Storage Physical Volume partitions
    Checking storage system
    Checking volume.
    disk3s2: Scan for Volume Headers
    disk3s2: Scan for Disk Labels
    Logical Volume Group C948DC54-AFC3-4E89-81C5-518FEBD8E2AB spans 1 device
    Logical Volume Group has a 16 MB Metadata Volume with double redundancy
    Start scanning metadata for a valid checkpoint
    Load and verify Segment Headers
    Load and verify Checkpoint Payload
    Load and verify Transaction Segment
    Load and verify Transaction Segment
    Incorporate 1 newer non-checkpoint transactions
    Load and verify Virtual Address Table
    Load and verify Segment Usage Table
    Unable to bootstrap transaction group 3803: inconsistent crosscheck
    Continue scanning metadata for an older checkpoint
    Load and verify Segment Headers
    Load and verify Checkpoint Payload
    Load and verify Transaction Segment
    Incorporate 0 newer non-checkpoint transactions
    Load and verify Virtual Address Table
    Load and verify Segment Usage Table
    Unable to bootstrap transaction group 3802: inconsistent crosscheck
    Continue scanning metadata for an older checkpoint
    Load and verify Segment Headers
    Load and verify Checkpoint Payload
    Load and verify Transaction Segment
    Incorporate 0 newer non-checkpoint transactions
    Load and verify Virtual Address Table
    Load and verify Segment Usage Table
    Unable to bootstrap transaction group 3801: inconsistent crosscheck
    Continue scanning metadata for an older checkpoint
    Load and verify Segment Headers
    Load and verify Checkpoint Payload
    Load and verify Transaction Segment
    Incorporate 0 newer non-checkpoint transactions
    Load and verify Virtual Address Table
    Load and verify Segment Usage Table
    Unable to bootstrap transaction group 3800: inconsistent crosscheck
    No valid commit checkpoint found
    The volume C948DC54-AFC3-4E89-81C5-518FEBD8E2AB was found corrupt and can not be repaired.
    Problems were encountered during repair of the partition map
    Error: Storage system verify or repair failed.
    Also, I tried disk warrior but it doesn't show up as one of the drives available to repair. I'm running Lion on my machine.
    Any ideas?? Thanks in advance.

    SokrMan wrote:
    The volume C948DC54-AFC3-4E89-81C5-518FEBD8E2AB was found corrupt and can not be repaired.
    Problems were encountered during repair of the partition map
    First off, thanks for being so detailed it saves a lot of trouble.
    What has occured is your GUID partition map has become corrupted, this small hidden section on the drive is responsible for telling the hardware what and sizes of the partitions are on that drive. (OS X Lion, Lion Recovery and EFI)
    The only way to rebuild the partition map is to erase and reformat the ENTIRE drive, including the hidden Lion Recovery Partition (which you booted into (Command R) to use Disk Utility to try to repair the drive.) Obviously this can't be done from the same drive booted from.
    Unfortunatly with OS X 10.7 Apple didn't provide OS X install disks to install OS X onto a external drive or to boot from to perform the complete erase and reformat of the entire drive.
    However if you have a blank powered external drive and a fast, reliable Internet connection (AppleID and password), you can Command R boot into Lion Recovery, format the external drive (Disk Utility: Partition: Options: GUID, Format: OS X Ext. J) and then install Lion from Apple's servers onto the external drive.
    Once you have that, reboot holding the Option key down (wired keyboard) and select the external drive to boot from. Once you go through setup, try to grab your files off the internal drive.
    (DataRescue can be used to recover deleted or corrupt file structure files directly from the 1's and 0's on the drive itself, it's $99, but a option if for some reason you can't do it manually via drag and drop)
    Once you have all your files off the machine (make another copy to another drive and disconnect that drive), use Disk Utility (booted on the external drive, it's in the Utilities folder) to select the entire internal drive (drive makers name and size) and perform a Erase with Security Option Zero All Data. This will take a few hours so wait it out. What this will do is force 0's to every bit on the drive, if the hardware detects a bad sector it will map that bad sector off. (I suspect you have a failed sector in your GUID parititon map.)
    Once that's complete, check the Partition tab: that Options is GUID and Format is OS X Extended (j)
    Now if you have a newer Mac, if you reboot normally (no external drive connected) the Mac itself should install either the Lion Recovery Partition or combined with OS X all by itself over the Internet, I haven't seen or done this yet, so you'll be poineering this aspect. If you get Lion Recovery, then simply boot into it (Command R) and install Lion onto the Lion Partition.
    Then go about installing all your apps first, then create a same named user as the old one (different password is fine) if you didn't use the same name as before, and then connect the external drive and transfer your contents of your User file folders (Music, Pictures, Movies etc) into their same name folders on the new setup, don't change anything, just select all and drag and drop, replace. By using the same user name, it preserves your itunes playlists and other data that depends upon correct user pathnames to the secondary files. If you start moving things around you'll lose the pathnames to your secondary files (songs). If your permissions are off, Finder: Get Info to set all (including down inside folders) to your new username.
    If Internet Recovery  doesn't work, option boot from the external drive and download Carbon Copy Cloner (free to use, donations accepted) and learn how to clone both your Lion Recovery Partition and OS X Lion Partition back onto your internal drive.
    http://www.bombich.com/
    https://support.apple.com/kb/HT4718
    If by some chance you don't have a fast, relaible Internet connection your going to have ot take your machine to someplace that does, or have Apple fix the mess they caused by not supplying boot disks.
    You can opt to buy the $69 Lion USB thumb drive, you can option boot off of that and perform the same functions above onto a external drive to boot from and recover your files.

  • I have been trying to do the serial number retrieval for the Photoshop elemems 13 and hve been having trouble getting it to go through. One set of the numbers contains a O with a slash through it and I don't know how to enter it

    I am trying to enter the redemption code for my photoshop elements 13 and have one set that has a O with a slash through it and I have no idea what to enter

    A slashed Ø often represents the number zero, to distinguish it from the character O.
    If you have more questions, please ask in the Downloading, Installing, Setting Up forum.

  • Reset PRAM, now monitor shows just a circle with a slash through it

    Big problem. My iBook clamshell has a battery that just started sometimes charging and sometimes uncharging while computer was plugged into power adapter. Then the computer just "blacked out" a few times while plugged into power adapter.
    I bought a new power adapter, but still had the problem with the uncharging battery. One time the percentage amount of a charge would go down when it was being used while plugged into power adapter, the next time I used it the percentage amount might go back up to 100%. Money's really tight (I'm working part time & paying for emergency medical expenses) so instead of buying a new battery I dug out some instructions that helped my other clamshell that started "blacking out" a couple of years ago. At that time I was given a link to an article on resetting PRAM, and I'd printed out and kept the article.
    While the iBook was starting up I held down the keys: Command, Option, P and R. You're supposed to hold down the keys until you heard the start up sound a 2nd time. Well, I messed up and held them down until I heard the start up sound 3 times. Maybe that was a fatal error - something screwed things up.
    The monitor went from black to pale blue, but instead of getting the Apple icon as start up began I got a circle with a slash line through it. Nothing else happened. I had that circle mark for about 15 minutes - the computer never went into sleep mood and finally I improperly turned it off by using the power button.
    I turned the computer on again, hoping the problem had gone away. I got the pale blue screen showing the circle with a slash mark. I waited awhile, thinking something might start happening after a delay. And once again I improperly turned the computer off using the power key. I won't turn it on again unless I'm given a possible solution.
    I bought this 2nd iBook because it had an Airport card, and I take it to the library to use free WiFi. I've been entering an important manuscript that I don't want to use.
    Is this fixable? This has me big-time frightened.

    Hi Karen,
    If your computer is back from the dead, then possibly your kernel panic issue has been resolved. Maybe there were software or directory issues that are now fixed.
    It wouldn't hurt to go ahead and open Disk Utility and repair permissions. Disk Utility should be in the Utilities folder in your applications folder.
    Repairing permissions is something you should do after every software download because permissions are changed for the download process. You repair permissions on the First Aid tab, and you want to repair them several times until there is nothing left to repair. While in Disk utility, you can also verify your hard drive and check the SMART status and make sure it doesn't have any problems. I would recommend you leave Disk Utility in the Dock so it will be handy next time you need it.
    As long as your hard drive is in good shape, it won't have hurt anything to have skipped the step of verifying the drive. However, it is prudent to check on the hard drive before downloading software, because if the hard drive is failing or something, your priority will be to save the data off of it. A failing drive is unpredictable, and puts you at risk of losing everything. If you elect to keep Disk Utility in your Dock, you can check your drive anytime you like.
    You can also do a Safe Boot as a maintenance item every so often:
    http://support.apple.com/kb/HT1564?viewlocale=en_US
    http://support.apple.com/kb/HT1455?viewlocale=en_US
    http://support.apple.com/kb/TS1884?viewlocale=en_US
    It sounds like maybe you reinstalled the OS by doing an Archive and Install, which would have installed a fresh copy of the OS while preserving all your settings and data.
    Not sure why you can't connect to the internet. First check to be sure your airport card is plugged in and recognized. If it is, you should be able to go to System Preferences>Network and use the assistant to help you to reconnect. It may be you'd have to set up a new location or something like that.
    One thing you should do is to put in place a backup strategy. If an external hard drive is beyond your means right now, at least try to find a USB flash drive. Office depot has 4 GB drives on sale for around $10 every so often, and you can find even better deals on line. You can store a lot of documents in 4 GB flash drive, and you would not have the worry of potentially losing everything if your computer dies. I am really glad you got your document back after all the hundreds of hours it took to create it, but there was a real danger that you could have lost it and all your other data.
    Once you get your flash drive, use Disk Utility to format it (they usually come pre-formatted for Windows). You want to do this on the Partition tab--select Mac OS X Extended (Journaled) for the format and "Apple Partition Map" for the partition map scheme. You can also give your flash drive a name. Once you have it set up, you can mount it on your desktop and copy your documents etc. by dragging and dropping.
    Good luck, and happy computing!

  • I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off

    I can no longer hold down a key and get the character to repeat as say, aaaaa. Instead I get a menu of accented a's, such as àáâäæãåā. I can't find any thing in the System Preferences that allows my to turn this function off.

    Back up all data before proceeding.
    Please triple-click anywhere in the line below on this page to select it:
    defaults write -g ApplePressAndHoldEnabled NO
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing the key combination command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    Wait for a new line ending in a dollar sign ($) to appear below what you entered. You can then quit Terminal. Log out or restart the computer.

  • Defining a key binding for a character key

    I would like to redefine the behavior of a keyboard key that is associated with a Unicode character. For example, in a JTextField, I would like to override the default behavior which is to insert that character. The documentation I have seen recommends using InputMap and ActionMap. The problem I am running into is that defining a mapping for a KeyCode traps the KEY_PRESSED event, but the default action (which involves the KeyChar) traps the KEY_TYPED event. In other words, if I define a key binding for the intended KeyCode, the default binding for the associated KeyChar remains in effect. Is there a way to discover the mapping from KeyCode to KeyChar so that I can map the KeyChar to a null action? Or should I give up on InputMap and ActionMap and use an event listener?

    Sounds similar to [url http://forum.java.sun.com/thread.jspa?threadID=685442&messageID=3995916#3995916]this situation...
    : jay

  • LDAP and slash character

    i having problems when i try to read a object of ldap that contains the character "/".
    can anyone helpme?
    this is my code:
    Attributes vAtrs = ldapConnection.getAttributes("cn=" + codPool + "," + LdapConnection.getPoolsRoot());
    where the value of codPool is "abc/def"
    thanks

    From http://java.sun.com/products/jndi/tutorial/ldap/models/jndi.html ...
    As a result of federation, the names that you supply to the JNDI's context methods can span multiple namespaces. These are called composite names. When using the JNDI to access an LDAP service, you should be aware that the forward slash character ("/") in a string name has special meaning to the JNDI. If the LDAP entry's name contains this character, then you need to escape it (using the backslash character ("\")). For example, an LDAP entry with the name "cn=O/R" must be presented as the string "cn=O\\/R" to the JNDI context methods. See the What's in a Name? lesson for details.
    http://java.sun.com/products/jndi/tutorial/beyond/names/syntax.html
    Good luck,
    -Derek

  • Is their a difference between primary key and unique key with not null valu

    What is the difference in having a column as primary key and having unique key with not null for the column.
    vinodh

    SBH wrote:
    For quick review, below is the link
    http://www.dba-oracle.com/data_warehouse/clustered_index.htm
    You appear to have stumbled on a site that is a mine of disinformation about Oracle.
    >
    It would be helpful, if you explain it too..thnx !!
    The site is wrong and makes up its own terminology as it goes along.
    If the value for clustering factor approaches the number of blocks in the base table, then the index is said to be clustered. http://www.oracle.com/pls/db112/search?remark=quick_search&word=clustered+index
    There is no create clustered index in Oracle.
    - Clustering factor affects the efficiency of an index.
    - There can be clustered tables that you can create indexes on.
    - An Index Organized table is a similar concept to the Microsoft SQL Server clustered index, but it isn't the same thing at all.

Maybe you are looking for

  • Read a file sent as an attachment from CPSC

                       I have a requirement where in CPO has to read a text file sent as an attachment from portal (cisco prime service catalog), Is there a way to query RCdatabase to fetch Document ID and retrive the file and read the file. If this appr

  • Mandatory field in report

    Hi, I have a date field on report. Now this needs to be mandatory and report should be run in batch mode with a variant. Also when the report is run the first time the date should not be taken from the selection screen input but from TVARV, this is f

  • How to update business partner in SRM through FM or using ABAP

    Hi expert, My requirement is to update the requester field in the Shopping Cart with another requester as well as some other CUF field. Through BBP_PD_SC_UPDATE i am able to update the CUF item fields but i am unable to update the business partner. p

  • I cannot get google cache search to function in Firefox

    when I try to Google cache search for (certain color highlighted words on web pages) no color highlighted words show up.... A cache search is a great time saving convenience, and I miss mine not working. Is there anything I can do to reactivate it? F

  • N97 mini Web Feeds Font is too small and can't fin...

    Is there any other way to increase the font of the web feeds. The feeds font seems to be fixed. I adjusted it in the setting page to the largest without any effect. It only apply to the main webpages. Can anybody help? Or do I have to wait for a firm