<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dashes in space names in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274530#M227660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jcustovic :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, I guess I was encoding wrong, I will look at it again in the future, I only got two hours of Alfresco yesterday before I was directed elsewhere again &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Feb 2011 14:35:10 GMT</pubDate>
    <dc:creator>grantk</dc:creator>
    <dc:date>2011-02-11T14:35:10Z</dc:date>
    <item>
      <title>Dashes in space names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274526#M227656</link>
      <description>Hello, I am fairly new with Alfresco so forgive me if I do not explain everything properly. I am just using a test installation to see if Alfresco will be what is right for what I need. I am running Alfresco 3.4B on glassfish 3.0 . I am just trying to create spaces and documents right now. I am runn</description>
      <pubDate>Thu, 30 Dec 2010 20:31:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274526#M227656</guid>
      <dc:creator>grantk</dc:creator>
      <dc:date>2010-12-30T20:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dashes in space names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274527#M227657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you create space use normaln name like u would. Use ISO9075 when creating path reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;…&lt;BR /&gt;String spaceName = "Testing Space";&lt;BR /&gt;Reference baseFolder = createSpace(spaceName);&lt;BR /&gt;…&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when you check if space exists you are missing the following code (you have to set returned value as your space):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Node[] nodeArray = getRepositoryService().get(new Predicate(new Reference[] { space }, WORKSPACE_STORE, null));&lt;BR /&gt;space = nodeArray[0].getReference();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Same goes when the space was created:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;UpdateResult[] results = getRepositoryService().update(cml);&lt;BR /&gt;space = results[0].getDestination();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;EDIT:&lt;/EM&gt; Only use ISO9075 when creating path to space &lt;BR /&gt;&lt;/STRONG&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;STRONG&gt;&lt;CODE&gt;space = new Reference(STORE, null, getCompanyHome().getPath() + "/cm:" + ISO9075.encode(spacename));&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;SPAN&gt;When you create a space name do not use ISO9075!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Dec 2010 08:49:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274527#M227657</guid>
      <dc:creator>jcustovic</dc:creator>
      <dc:date>2010-12-31T08:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dashes in space names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274528#M227658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jcustovic,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the reply. I got yanked of the Alfresco work right after I asked that last question so sorry for the delayed response.&amp;nbsp; I have tried using the ISO9075.encode() method with success, but is there a way to avoid my space names being made non user friendly? I was hoping one of the benefits of Alfresco was that at some point I could send users to the web interfaces. But if they have to go to a space they know as Test Space, but it is actually listed as Test_x00200_Space that will not help. I saw there is a ISO9075.decode() but I am not really looking to have to convert each string passed to make it non readable, then convert it back to make it readable again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I wrong here in thinking this is a problem? I am not sure it is for anyone else but every bit of work done here involves a dash in a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Grant&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 21:47:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274528#M227658</guid>
      <dc:creator>grantk</dc:creator>
      <dc:date>2011-02-10T21:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dashes in space names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274529#M227659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;WRONG: &lt;/STRONG&gt;&lt;SPAN&gt;When you are working with web service api you have to use encode() when you create space and decode() when you read space names thru your java code. When you encode and create space on alfresco using alfresco web api users (alfresco web ui) will normally see dashes, not the encoded part (thats just for XML transportation). ISO 9075 is just used for encoding XML element names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;EDIT:&lt;/EM&gt; Only use ISO9075 when creating path to space &lt;BR /&gt;&lt;/STRONG&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;STRONG&gt;&lt;CODE&gt;space = new Reference(STORE, null, getCompanyHome().getPath() + "/cm:" + ISO9075.encode(spacename));&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;SPAN&gt;When you create a space name do not use ISO9075!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 08:20:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274529#M227659</guid>
      <dc:creator>jcustovic</dc:creator>
      <dc:date>2011-02-11T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dashes in space names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274530#M227660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jcustovic :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, I guess I was encoding wrong, I will look at it again in the future, I only got two hours of Alfresco yesterday before I was directed elsewhere again &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 14:35:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dashes-in-space-names/m-p/274530#M227660</guid>
      <dc:creator>grantk</dc:creator>
      <dc:date>2011-02-11T14:35:10Z</dc:date>
    </item>
  </channel>
</rss>

