Re: [Hypercontent-users] problem with usernames
Brought to you by:
alexvigdor
From: Alex V. <al...@bi...> - 2006-10-03 18:43:42
|
Hi Carl, This is a tricky situation, as right now HC allows you to specify an "edition" parameter for any URL, whose value might refer to a permanent edition (numeric) or a user's temp file (string). The logic currently tries to parse "edition" as a number, and if it succeeds it assumes a reference to a permanent edition; if it fails, it assumes it refers to a temp edition. The danger with numeric user ids is that this parsing no longer provides an effective namespace separation; that is, you might have a permanent edition 123456 and a user 123456, and the system would not be able to distinguish which is being requested. I suppose the proper solution would be to remove this overloading of the "edition" property, but unfortunately this is not a trivial change. Are there any other distinguishing features or patterns to your numeric user id that might allow for a simpler hack? Cheers, Alex On Tue, 3 Oct 2006 16:41:52 +0100, Carl Barrow wrote > Hi Alex, > > We have just come across a bug today which is pretty significant > here in Hull but may not necessarily affect anyone else. The > University has changed the format of it's user IDs so new staff now > have numbers instead of letters ie '123456' The first user to have > this new ID format was added to HyperContent today but when they are > editing content they are unable to use the dropdown arrow to view > the content editor and then returning to the view screen they get > the following error: > > There was an error processing your request > /local/hypercontent/hypercontentnew/repositories/portal_content_serv_supp_ta > b/hr_hera/index.xml/editions/123456/metadata_file (No such file or > directory) > > java.io.FileInputStream.open(Native Method) > java.io.FileInputStream.<init>(FileInputStream.java:106) > > org.hypercontent.filesystem.impl.IOFileMetaDataLoader.getMetaData(IOFileMeta > DataLoader.java:74) > org.hypercontent.filesystem.File.getMetaData(File.java:192) > org.hypercontent.project.FileAsset.getMetaData(FileAsset.java:235) > > org.hypercontent.project.engine.stage.XMLIncludeStage.getIncludes(XMLInclude > Stage.java:166) > > org.hypercontent.project.engine.stage.XMLIncludeStage.getIncludes(XMLInclude > Stage.java:122) > > org.hypercontent.project.engine.stage.XMLIncludeStage.getIncludes(XMLInclude > Stage.java:176) > > org.hypercontent.project.engine.stage.XMLIncludeStage.process(XMLIncludeStag > e.java:67) > org.hypercontent.project.engine.Pipeline.process(Pipeline.java:307) org.hypercontent.project.engine.Pipeline.process(Pipeline.java:281) org.hypercontent.project.AssetRequest.getAsset(AssetRequest.java:194) org.hypercontent.server.ContentServer.service(ContentServer.java:441) > > org.hypercontent.servlet.CompositionServlet.doGet(CompositionServlet.java:10 > 4) > javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > FilterChain.java:237) > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > ain.java:157) > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > va:214) > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext > Valve.java:198) > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > va:152) > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 > ) > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 > ) > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:102) > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > :109) > > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex > t.java:104) > > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > ction(Http11Protocol.java:705) > > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > a:683) > java.lang.Thread.run(Thread.java:534) > > Any help appreciated > > Cheers > Carl > > ************************************* > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************* |